[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,20 +3,20 @@
# 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:
- common_usersetup.stat.exists == false and usersetup_chsh == true
- name: usersetup - Create lockfile
file:
ansible.builtin.file:
path: .ansbl-common-usersetup
state: touch
when: