add become to required tasks

This commit is contained in:
distrobyte 2023-02-11 01:56:48 +00:00
parent 2bb2533bef
commit c75bde2257
2 changed files with 2 additions and 0 deletions

View file

@ -1,5 +1,6 @@
--- ---
- name: Ensure user groups are present - name: Ensure user groups are present
become: true
group: group:
name: "{{ item }}" name: "{{ item }}"
state: present state: present

View file

@ -5,6 +5,7 @@
loop_var: user_data loop_var: user_data
- name: Ensure user accounts are present - name: Ensure user accounts are present
become: true
user: user:
name: "{{ item.user | default(item) }}" name: "{{ item.user | default(item) }}"
shell: /bin/bash shell: /bin/bash