Optional list of users to add to docker group
This commit is contained in:
parent
3e527311b2
commit
d87d5ff525
@ -41,13 +41,13 @@
|
|||||||
state: present
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Add user to docker group
|
- name: Add users to docker group
|
||||||
user:
|
user:
|
||||||
name: "{{ docker_user }}"
|
name: "{{ item }}"
|
||||||
groups: docker
|
groups: docker
|
||||||
skeleton: /etc/skel
|
|
||||||
shell: /bin/bash
|
|
||||||
append: true
|
append: true
|
||||||
|
loop: "{{ docker_users }}"
|
||||||
|
when: users is defined
|
||||||
|
|
||||||
- name: Install docker-compose
|
- name: Install docker-compose
|
||||||
script: install-compose.sh
|
script: install-compose.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user