[TIDY] Set some "diff: false", fix linter warnings
This commit is contained in:
parent
47dd9508a6
commit
f380e0ba29
34 changed files with 236 additions and 195 deletions
|
@ -2,42 +2,43 @@
|
|||
# Common/Usersetup: Auto-setup a user shell and prepare dotfiles - CentOS Version
|
||||
# Will run once per user, because of lockfile `~/.ansbl-common-usersetup`
|
||||
|
||||
- name: usersetup - Check, if usersetup already ran
|
||||
- name: Usersetup - Check, if usersetup already ran
|
||||
ansible.builtin.stat:
|
||||
path: "{{ ansible_user_dir }}/.ansbl-common-usersetup"
|
||||
register: common_usersetup
|
||||
|
||||
- name: usersetup - Change login shell to zsh for current user
|
||||
- name: Usersetup - Change login shell to zsh for current user
|
||||
when:
|
||||
- common_usersetup.stat.exists == false and usersetup_chsh == true
|
||||
become: yes
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
shell: /bin/zsh
|
||||
|
||||
# TODO: adapt to CentOS/ RHEL systems, if needed
|
||||
# - name: usersetup - Install locales package
|
||||
# become: yes
|
||||
# - name: Usersetup - Install locales package
|
||||
# become: true
|
||||
# ansible.builtin.apt:
|
||||
# name: locales
|
||||
# state: present
|
||||
# diff: false
|
||||
|
||||
# - name: usersetup - Setup locale en_US
|
||||
# - name: Usersetup - Setup locale en_US
|
||||
# when:
|
||||
# - common_usersetup.stat.exists == false
|
||||
# become: yes
|
||||
# become: true
|
||||
# ansible.builtin.locale_gen:
|
||||
# name: en_US.UTF-8
|
||||
# state: present
|
||||
# - name: usersetup - Setup locale de_DE
|
||||
# - name: Usersetup - Setup locale de_DE
|
||||
# when:
|
||||
# - common_usersetup.stat.exists == false
|
||||
# become: yes
|
||||
# become: true
|
||||
# ansible.builtin.locale_gen:
|
||||
# name: de_DE.UTF-8
|
||||
# state: present
|
||||
|
||||
- name: usersetup - Create lockfile
|
||||
- name: Usersetup - Create lockfile
|
||||
when:
|
||||
- common_usersetup.stat.exists == false
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue