[TIDY] Update to ansible 4 module names

This commit is contained in:
Jannik Beyerstedt 2021-08-28 16:58:03 +02:00
parent a384c4385a
commit 9f7fa75980
32 changed files with 139 additions and 121 deletions

View file

@ -14,7 +14,7 @@
# - user_lang_latex: Boolean for LaTeX
- name: vscode - Install and configure VS Code
include_tasks: "{{ item }}"
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"
@ -23,7 +23,7 @@
- name: vscode - Basics
block:
- name: vscode - Basics - Configure
shell: |
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension chiehyu.vscode-astyle
code --install-extension editorconfig
@ -39,7 +39,7 @@
- name: vscode - C/C++
block:
- name: vscode - C/C++ - Configure VS Code
shell: |
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension ms-vscode.cpptools
code --install-extension ms-vscode.cmake-tools
@ -48,7 +48,7 @@
# VS Code - Python Development Tools
- name: devel - Python - Install python dev packages
pip:
ansible.builtin.pip:
name:
- autopep8
# - pylint # must be installed in each venv individually!
@ -57,7 +57,7 @@
- name: vscode - Python
block:
- name: vscode - Python - Configure VS Code
shell: |
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension ms-python.python
when: user_vscode == true and user_lang_python == true
@ -67,21 +67,21 @@
- name: devel - Golang - Setup Environment
block:
- name: devel - Golang - Create workspace directory
file:
ansible.builtin.file:
path: "{{ user_lang_golang_gopath }}"
state: directory
- name: devel - Golang - Create zshrc-host
file:
ansible.builtin.file:
path: "{{ ansible_user_dir}}/.zshrc-host"
state: touch
- name: devel - Golang - Add GOPATH
lineinfile:
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
lineinfile:
ansible.builtin.lineinfile:
path: "{{ ansible_user_dir}}/.zshrc-host"
line: "export PATH=$PATH:{{ user_lang_golang_gopath }}/bin"
state: present
@ -93,7 +93,7 @@
- name: vscode - Golang
block:
- name: vscode - Golang - Configure VS Code
shell: |
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension golang.go
when: user_vscode == true and user_lang_golang == true
@ -101,7 +101,7 @@
# VS Code - LaTeX Distribution
- name: devel - LaTeX - Install TeX packages
become: yes
shell: |
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
@ -110,7 +110,7 @@
- name: vscode - LaTeX
block:
- name: vscode - Basics - Configure
shell: |
ansible.builtin.shell: |
PATH=/usr/local/bin:$PATH
code --install-extension james-yu.latex-workshop
code --install-extension ban.spellright