dev-setup: add LaTeX installation
This commit is contained in:
parent
709dbf741a
commit
6c4089870c
|
@ -35,6 +35,7 @@ For a GUI/ Desktop machine, you can enable to install and configure VS Code:
|
|||
- `user_lang_python`: Boolean to install Python dev tools and configure VS Code (default: false)
|
||||
- `user_lang_golang`: Boolean to install Golang dev tools and configure VS Code (default: false)
|
||||
* `user_lang_golang_gopath`: Install path for golang (default: "{{ ansible_user_dir }}/Development/go")
|
||||
- `user_lang_latex`: Boolean to install a LaTeX distribution and configure VS Code (default: false)
|
||||
|
||||
By default, this role will run updates, install some essential tools, set up the user's shell and copy the dotfiles.
|
||||
If you just want to have the dotfiles managed by ansible, set `common_settingsonly` to true!
|
||||
|
|
|
@ -19,3 +19,4 @@ user_lang_cpp: false
|
|||
user_lang_python: false
|
||||
user_lang_golang: false
|
||||
user_lang_golang_gopath: "{{ ansible_user_dir }}/Development/go"
|
||||
user_lang_latex: false
|
||||
|
|
|
@ -50,3 +50,19 @@
|
|||
packages:
|
||||
- go
|
||||
when: user_lang_golang == true
|
||||
|
||||
# Dev Env - LaTeX Distribution
|
||||
- name: devel - LaTeX
|
||||
block:
|
||||
- name: devel - LaTeX - Install basic TeX distribution
|
||||
package:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- texlive-core
|
||||
# - texlive-bibtexextra
|
||||
# - texlive-science
|
||||
# - texlive-fontsextra
|
||||
- biber
|
||||
when: user_lang_latex == true
|
||||
|
|
|
@ -57,3 +57,16 @@
|
|||
packages:
|
||||
- go
|
||||
when: user_lang_golang == true
|
||||
|
||||
# Dev Env - LaTeX Distribution
|
||||
- name: devel - LaTeX
|
||||
block:
|
||||
- name: devel - LaTeX - Install basic TeX distribution
|
||||
homebrew_cask:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- basictex
|
||||
- tex-live-utility
|
||||
when: user_vscode == true and user_lang_latex == true
|
||||
|
|
|
@ -55,3 +55,19 @@
|
|||
packages:
|
||||
- golang
|
||||
when: user_lang_golang == true
|
||||
|
||||
# Dev Env - LaTeX Distribution
|
||||
- name: devel - LaTeX
|
||||
block:
|
||||
- name: devel - LaTeX - Install basic TeX distribution
|
||||
package:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
vars:
|
||||
packages:
|
||||
- texlive-base
|
||||
# - texlive-bibtex-extra
|
||||
# - texlive-science
|
||||
# - texlive-fonts-extra
|
||||
- biber
|
||||
when: user_lang_latex == true
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
# - user_lang_python: Boolean for Python
|
||||
# - user_lang_golang: Boolean for Golang
|
||||
# - user_lang_golang_gopath: Go workspace directory
|
||||
# - user_lang_latex: Boolean for LaTeX
|
||||
|
||||
- name: vscode - Install and configure VS Code
|
||||
include_tasks: "{{ item }}"
|
||||
|
@ -30,9 +31,8 @@
|
|||
|
||||
code --install-extension yzane.markdown-pdf
|
||||
code --install-extension jebbs.plantuml
|
||||
|
||||
# code --install-extension james-yu.latex-workshop
|
||||
# code --install-extension ban.spellright
|
||||
code --install-extension mechatroner.rainbow-csv
|
||||
code --install-extension grapecity.gc-excelviewer
|
||||
when: user_vscode == true
|
||||
|
||||
# VS Code - C/C++ Development Tools
|
||||
|
@ -47,7 +47,7 @@
|
|||
when: user_vscode == true and user_lang_cpp == true
|
||||
|
||||
# VS Code - Python Development Tools
|
||||
- name: vscode - Python - Install python dev packages
|
||||
- name: devel - Python - Install python dev packages
|
||||
pip:
|
||||
name:
|
||||
- autopep8
|
||||
|
@ -86,7 +86,7 @@
|
|||
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"
|
||||
state: present
|
||||
backup: yes
|
||||
# TODO: make this resilient agains changes
|
||||
# TODO: make this resilient against changes
|
||||
# and group all golang stuff in one section inside zshrc-host
|
||||
when: user_lang_golang == true
|
||||
|
||||
|
@ -97,3 +97,21 @@
|
|||
PATH=/usr/local/bin:$PATH
|
||||
code --install-extension ms-vscode.go
|
||||
when: user_vscode == true and user_lang_golang == true
|
||||
|
||||
# VS Code - LaTeX Distribution
|
||||
- name: devel - LaTeX - Install TeX packages
|
||||
become: yes
|
||||
shell: |
|
||||
PATH=/Library/TeX/textbin:$PATH
|
||||
tlmgr install latexmk latexindent biblatex logreq xstring biber
|
||||
tlmgr install collection-fontsextra collection-fontsrecommended collection-fontutils collection-langgerman collection-langenglish collection-mathscience
|
||||
tlmgr install todonotes textpos lipsum pgfopts xpatch enumitem nomencl glossaries glossaries-german glossaries-english datatool mfirstuc xfor substr tracklang placeins placeins-plain csquotes appendixnumberbeamer fontaxes
|
||||
when: user_lang_latex == true
|
||||
- name: vscode - LaTeX
|
||||
block:
|
||||
- name: vscode - Basics - Configure
|
||||
shell: |
|
||||
PATH=/usr/local/bin:$PATH
|
||||
code --install-extension james-yu.latex-workshop
|
||||
code --install-extension ban.spellright
|
||||
when: user_vscode == true and user_lang_latex == true
|
||||
|
|
Loading…
Reference in a new issue