Merge pull request 'Adds user list in variable docker_users to docker group' (#5) from bugfix/docker-users-group into master
Reviewed-on: #5
This commit is contained in:
commit
c0059510d8
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,14 @@
|
|||
groups: users
|
||||
with_items: "{{ users }}"
|
||||
|
||||
- name: 'Add docker users'
|
||||
user:
|
||||
name: "{{ item }}"
|
||||
groups: docker
|
||||
append: yes
|
||||
with_items: "{{ docker_users }}"
|
||||
when: docker_users | count
|
||||
|
||||
- block:
|
||||
- name: 'Ensure that sudo group is existing'
|
||||
group:
|
||||
|
|
Loading…
Add table
Reference in a new issue