[TIDY] fix ansible-lint issues

This commit is contained in:
Jannik Beyerstedt 2024-12-03 09:48:05 +01:00
parent 78df6551ac
commit e86374973a
13 changed files with 62 additions and 44 deletions

View file

@ -9,7 +9,7 @@
- name: Usersetup - Change login shell to zsh for current user
when:
- common_usersetup.stat.exists == false and usersetup_chsh == true
- not common_usersetup.stat.exists and usersetup_chsh
become: true
ansible.builtin.user:
name: "{{ ansible_user_id }}"
@ -24,14 +24,14 @@
- name: Usersetup - Setup locale en_US
when:
- common_usersetup.stat.exists == false
- not common_usersetup.stat.exists
become: true
ansible.builtin.locale_gen:
name: en_US.UTF-8
state: present
- name: Usersetup - Setup locale de_DE
when:
- common_usersetup.stat.exists == false
- not common_usersetup.stat.exists
become: true
ansible.builtin.locale_gen:
name: de_DE.UTF-8
@ -39,7 +39,8 @@
- name: Usersetup - Create lockfile
when:
- common_usersetup.stat.exists == false
- not common_usersetup.stat.exists
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.ansbl-common-usersetup"
state: touch
mode: "0644"