[TIDY] fix ansible-lint issues
This commit is contained in:
parent
78df6551ac
commit
e86374973a
13 changed files with 62 additions and 44 deletions
|
@ -17,11 +17,11 @@
|
|||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
with_first_found:
|
||||
- "devel-{{ ansible_distribution }}.yml"
|
||||
- "devel-{{ (override_os_family is defined) | ternary(override_os_family,ansible_os_family) }}.yml"
|
||||
- "devel-{{ (override_os_family is defined) | ternary(override_os_family, ansible_os_family) }}.yml"
|
||||
|
||||
# Install Visual Studio Code and Set Basic Configuration
|
||||
- name: VSCode - Basics
|
||||
when: user_vscode == true
|
||||
when: user_vscode
|
||||
block:
|
||||
- name: VSCode - Basics - Configure
|
||||
ansible.builtin.shell: |
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
# VS Code - C/C++ Development Tools
|
||||
- name: VSCode - C/C++
|
||||
when: user_vscode == true and user_lang_cpp == true
|
||||
when: user_vscode and user_lang_cpp
|
||||
block:
|
||||
- name: VSCode - C/C++ - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
|
@ -48,14 +48,14 @@
|
|||
|
||||
# VS Code - Python Development Tools
|
||||
- name: Devel - Python - Install python dev packages
|
||||
when: user_lang_python == true
|
||||
when: user_lang_python
|
||||
ansible.builtin.pip:
|
||||
name:
|
||||
- autopep8
|
||||
# - pylint # must be installed in each venv individually!
|
||||
executable: "{{ override_pip_exe | default(default_pip3_exe) }}"
|
||||
- name: VSCode - Python
|
||||
when: user_vscode == true and user_lang_python == true
|
||||
when: user_vscode and user_lang_python
|
||||
block:
|
||||
- name: VSCode - Python - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
|
@ -65,16 +65,18 @@
|
|||
# VC Code - Golang Development Tools
|
||||
# https://golang.org/doc/install
|
||||
- name: Devel - Golang - Setup Environment
|
||||
when: user_lang_golang == true
|
||||
when: user_lang_golang
|
||||
block:
|
||||
- name: Devel - Golang - Create workspace directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_lang_golang_gopath }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
- name: Devel - Golang - Create zshrc-host
|
||||
ansible.builtin.file:
|
||||
path: "{{ ansible_user_dir }}/.zshrc-host"
|
||||
state: touch
|
||||
mode: "0644"
|
||||
- name: Devel - Golang - Add GOPATH
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ ansible_user_dir }}/.zshrc-host"
|
||||
|
@ -91,7 +93,7 @@
|
|||
# and group all golang stuff in one section inside zshrc-host
|
||||
|
||||
- name: VSCode - Golang
|
||||
when: user_vscode == true and user_lang_golang == true
|
||||
when: user_vscode and user_lang_golang
|
||||
block:
|
||||
- name: VSCode - Golang - Configure VS Code
|
||||
ansible.builtin.shell: |
|
||||
|
@ -100,7 +102,7 @@
|
|||
|
||||
# VS Code - LaTeX Distribution
|
||||
- name: Devel - LaTeX - Install TeX packages
|
||||
when: user_lang_latex == true
|
||||
when: user_lang_latex
|
||||
become: true
|
||||
ansible.builtin.shell: |
|
||||
PATH=/Library/TeX/texbin:$PATH
|
||||
|
@ -109,7 +111,7 @@
|
|||
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 hyphenat
|
||||
- name: VSCode - LaTeX
|
||||
when: user_vscode == true and user_lang_latex == true
|
||||
when: user_vscode and user_lang_latex
|
||||
block:
|
||||
- name: VSCode - Basics - Configure
|
||||
ansible.builtin.shell: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue