mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-05-01 01:15:16 +02:00
Add become: true and fix loop var name
This commit is contained in:
parent
daec3e376b
commit
7890fcf596
@ -1,9 +1,12 @@
|
|||||||
---
|
---
|
||||||
- name: Ensure docker users are added to the docker group.
|
- name: Ensure docker users are added to the docker group.
|
||||||
|
become: true
|
||||||
user:
|
user:
|
||||||
name: "{{ item }}"
|
name: "{{ muser }}"
|
||||||
groups: docker
|
groups: docker
|
||||||
append: true
|
append: true
|
||||||
|
loop_control:
|
||||||
|
loop_var: muser
|
||||||
with_items: "{{ docker_users }}"
|
with_items: "{{ docker_users }}"
|
||||||
|
|
||||||
- name: Reset ssh connection to apply user changes.
|
- name: Reset ssh connection to apply user changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user