[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
|
@ -8,12 +8,12 @@
|
|||
register: common_usersetup
|
||||
|
||||
- name: usersetup - Change login shell to zsh for current user
|
||||
when:
|
||||
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||
become: yes
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
shell: /usr/local/bin/zsh
|
||||
when:
|
||||
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||
|
||||
# - name: usersetup - Install locales package
|
||||
# become: yes
|
||||
|
@ -22,23 +22,23 @@
|
|||
# state: present
|
||||
|
||||
# - name: usersetup - Setup locale en_US
|
||||
# when:
|
||||
# - common_usersetup.stat.exists == false
|
||||
# become: yes
|
||||
# ansible.builtin.locale_gen:
|
||||
# name: en_US.UTF-8
|
||||
# state: present
|
||||
# - name: usersetup - Setup locale de_DE
|
||||
# when:
|
||||
# - common_usersetup.stat.exists == false
|
||||
# - name: usersetup - Setup locale de_DE
|
||||
# become: yes
|
||||
# ansible.builtin.locale_gen:
|
||||
# name: de_DE.UTF-8
|
||||
# state: present
|
||||
# when:
|
||||
# - common_usersetup.stat.exists == false
|
||||
|
||||
- name: usersetup - Create lockfile
|
||||
when:
|
||||
- common_usersetup.stat.exists == false
|
||||
ansible.builtin.file:
|
||||
path: .ansbl-common-usersetup
|
||||
state: touch
|
||||
when:
|
||||
- common_usersetup.stat.exists == false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue