[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

@ -3,13 +3,13 @@
# Will run once per user, because of lockfile `~/.ansbl-common-usersetup`
- name: usersetup - Check, if usersetup already ran
stat:
ansible.builtin.stat:
path: .ansbl-common-usersetup
register: common_usersetup
- name: usersetup - Change login shell to zsh for current user
become: yes
user:
ansible.builtin.user:
name: "{{ ansible_user_id }}"
shell: /bin/zsh
when:
@ -17,27 +17,27 @@
- name: usersetup - Install locales package
become: yes
apt:
ansible.builtin.apt:
name: locales
state: present
- name: usersetup - Setup locale en_US
become: yes
locale_gen:
ansible.builtin.locale_gen:
name: en_US.UTF-8
state: present
when:
- common_usersetup.stat.exists == false
- name: usersetup - Setup locale de_DE
become: yes
locale_gen:
ansible.builtin.locale_gen:
name: de_DE.UTF-8
state: present
when:
- common_usersetup.stat.exists == false
- name: usersetup - Create lockfile
file:
ansible.builtin.file:
path: .ansbl-common-usersetup
state: touch
when: