[TIDY] move when statements, fix whitespace
Having the when condition of a task at the top instead of bottom is easiert to read. Also some spaces were another whitespace character on accident.
This commit is contained in:
parent
a9e89283a2
commit
a8285962a9
13 changed files with 74 additions and 74 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
# Install Visual Studio Code and Set Basic Configuration
|
||||
- name: vscode - Basics
|
||||
when: user_vscode == true
|
||||
block:
|
||||
- name: vscode - Basics - Configure
|
||||
ansible.builtin.shell: |
|
||||
|
@ -33,10 +34,10 @@
|
|||
code --install-extension jebbs.plantuml
|
||||
code --install-extension mechatroner.rainbow-csv
|
||||
code --install-extension grapecity.gc-excelviewer
|
||||
when: user_vscode == true
|
||||
|
||||
# VS Code - C/C++ Development Tools
|
||||
- name: vscode - C/C++
|
||||
when: user_vscode == true and user_lang_cpp == true
|
||||
block:
|
||||
- name: vscode - C/C++ - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
|
@ -44,27 +45,27 @@
|
|||
code --install-extension ms-vscode.cpptools
|
||||
code --install-extension ms-vscode.cmake-tools
|
||||
code --install-extension twxs.cmake
|
||||
when: user_vscode == true and user_lang_cpp == true
|
||||
|
||||
# VS Code - Python Development Tools
|
||||
- name: devel - Python - Install python dev packages
|
||||
when: user_lang_python == true
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- autopep8
|
||||
# - pylint # must be installed in each venv individually!
|
||||
executable: "{{ override_pip_exe | default(default_pip3_exe) }}"
|
||||
when: user_lang_python == true
|
||||
- name: vscode - Python
|
||||
when: user_vscode == true and user_lang_python == true
|
||||
block:
|
||||
- name: vscode - Python - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
PATH=/usr/local/bin:$PATH
|
||||
code --install-extension ms-python.python
|
||||
when: user_vscode == true and user_lang_python == true
|
||||
|
||||
# VC Code - Golang Development Tools
|
||||
# https://golang.org/doc/install
|
||||
- name: devel - Golang - Setup Environment
|
||||
when: user_lang_golang == true
|
||||
block:
|
||||
- name: devel - Golang - Create workspace directory
|
||||
ansible.builtin.file:
|
||||
|
@ -88,30 +89,29 @@
|
|||
backup: yes
|
||||
# TODO: make this resilient against changes
|
||||
# and group all golang stuff in one section inside zshrc-host
|
||||
when: user_lang_golang == true
|
||||
|
||||
- name: vscode - Golang
|
||||
when: user_vscode == true and user_lang_golang == true
|
||||
block:
|
||||
- name: vscode - Golang - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
PATH=/usr/local/bin:$PATH
|
||||
code --install-extension golang.go
|
||||
when: user_vscode == true and user_lang_golang == true
|
||||
|
||||
# VS Code - LaTeX Distribution
|
||||
- name: devel - LaTeX - Install TeX packages
|
||||
when: user_lang_latex == true
|
||||
become: yes
|
||||
ansible.builtin.shell: |
|
||||
PATH=/Library/TeX/texbin:$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
|
||||
when: user_vscode == true and user_lang_latex == true
|
||||
block:
|
||||
- name: vscode - Basics - Configure
|
||||
ansible.builtin.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…
Add table
Add a link
Reference in a new issue