[TIDY] Set some "diff: false", fix linter warnings

This commit is contained in:
Jannik Beyerstedt 2023-04-28 23:25:25 +02:00
parent 47dd9508a6
commit f380e0ba29
34 changed files with 236 additions and 195 deletions

View file

@ -13,17 +13,17 @@
# - user_lang_golang_gopath: Go workspace directory
# - user_lang_latex: Boolean for LaTeX
- name: vscode - Install and configure VS Code
- name: VSCode - Install and configure VS Code
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"
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
- name: VSCode - Basics
when: user_vscode == true
block:
- name: vscode - Basics - Configure
- name: VSCode - Basics - Configure
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension chiehyu.vscode-astyle
@ -36,10 +36,10 @@
code --install-extension grapecity.gc-excelviewer
# VS Code - C/C++ Development Tools
- name: vscode - C/C++
- name: VSCode - C/C++
when: user_vscode == true and user_lang_cpp == true
block:
- name: vscode - C/C++ - Configure VS Code
- name: VSCode - C/C++ - Configure VS Code
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension ms-vscode.cpptools
@ -47,71 +47,71 @@
code --install-extension twxs.cmake
# VS Code - Python Development Tools
- name: devel - Python - Install python dev packages
- 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) }}"
- name: vscode - Python
- name: VSCode - Python
when: user_vscode == true and user_lang_python == true
block:
- name: vscode - Python - Configure VS Code
- name: VSCode - Python - Configure VS Code
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension ms-python.python
# VC Code - Golang Development Tools
# https://golang.org/doc/install
- name: devel - Golang - Setup Environment
- name: Devel - Golang - Setup Environment
when: user_lang_golang == true
block:
- name: devel - Golang - Create workspace directory
- name: Devel - Golang - Create workspace directory
ansible.builtin.file:
path: "{{ user_lang_golang_gopath }}"
state: directory
- name: devel - Golang - Create zshrc-host
- name: Devel - Golang - Create zshrc-host
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.zshrc-host"
state: touch
- name: devel - Golang - Add GOPATH
- name: Devel - Golang - Add GOPATH
ansible.builtin.lineinfile:
path: "{{ ansible_user_dir }}/.zshrc-host"
line: "export GOPATH={{ user_lang_golang_gopath }}"
state: present
backup: yes
- name: devel - Golang - Add go bin to PATH
backup: true
- name: Devel - Golang - Add go bin to PATH
ansible.builtin.lineinfile:
path: "{{ ansible_user_dir }}/.zshrc-host"
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"
state: present
backup: yes
backup: true
# TODO: make this resilient against changes
# and group all golang stuff in one section inside zshrc-host
- name: vscode - Golang
- name: VSCode - Golang
when: user_vscode == true and user_lang_golang == true
block:
- name: vscode - Golang - Configure VS Code
- name: VSCode - Golang - Configure VS Code
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension golang.go
# VS Code - LaTeX Distribution
- name: devel - LaTeX - Install TeX packages
- name: Devel - LaTeX - Install TeX packages
when: user_lang_latex == true
become: yes
become: true
ansible.builtin.shell: |
PATH=/Library/TeX/texbin:$PATH
tlmgr update --self
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 hyphenat
- name: vscode - LaTeX
- name: VSCode - LaTeX
when: user_vscode == true and user_lang_latex == true
block:
- name: vscode - Basics - Configure
- name: VSCode - Basics - Configure
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension james-yu.latex-workshop