Adds user list in variable docker_users to docker group
This commit is contained in:
parent
b79bd4d2d7
commit
3bbc6bb2cf
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,14 @@
|
||||||
groups: users
|
groups: users
|
||||||
with_items: "{{ users }}"
|
with_items: "{{ users }}"
|
||||||
|
|
||||||
|
- name: 'Add docker users'
|
||||||
|
user:
|
||||||
|
name: "{{ item }}"
|
||||||
|
groups: docker
|
||||||
|
append: yes
|
||||||
|
with_items: "{{ docker_users }}"
|
||||||
|
when: docker_users | count
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: 'Ensure that sudo group is existing'
|
- name: 'Ensure that sudo group is existing'
|
||||||
group:
|
group:
|
||||||
|
|
Loading…
Add table
Reference in a new issue