[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:
Jannik Beyerstedt 2022-02-13 20:52:22 +01:00
parent a9e89283a2
commit a8285962a9
13 changed files with 74 additions and 74 deletions

View file

@ -8,6 +8,7 @@
# Install Visual Studio Code and Set Basic Configuration
- name: vscode - Basics
when: user_vscode == true
block:
- name: vscode - Basics - Install
ansible.builtin.homebrew_cask:
@ -32,16 +33,16 @@
# - graphviz
- name: vscode - Basics - Create settings directory
ansible.builtin.file:
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
path: "{{ ansible_user_dir }}/Library/Application Support/Code/User"
state: directory
- name: vscode - Basics - Copy global settings
ansible.builtin.copy:
src: "{{ role_path }}/files/vscode-settings.json"
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
when: user_vscode == true
dest: "{{ ansible_user_dir }}/Library/Application Support/Code/User/settings.json"
# Dev Env - C/C++ Development Tools
- name: devel - C/C++
when: user_lang_cpp == true
block:
- name: devel - C/C++ - Install developer tools
ansible.builtin.homebrew:
@ -50,13 +51,13 @@
vars:
packages:
- clang-format
when: user_lang_cpp == true
# Dev Env - Python Development Tools
# all done in vscode.yml
# Dev Env - Golang Development Tools
- name: devel - Golang
when: user_lang_golang == true
block:
- name: devel - Golang - Install developer tools
ansible.builtin.homebrew:
@ -65,10 +66,10 @@
vars:
packages:
- go
when: user_lang_golang == true
# Dev Env - LaTeX Distribution
- name: devel - LaTeX
when: user_vscode == true and user_lang_latex == true
block:
- name: devel - LaTeX - Install basic TeX distribution
ansible.builtin.homebrew_cask:
@ -78,4 +79,3 @@
packages:
- basictex
- tex-live-utility
when: user_vscode == true and user_lang_latex == true