add become to required tasks
This commit is contained in:
parent
2bb2533bef
commit
c75bde2257
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue