Add deploy_users to docker group
This commit is contained in:
parent
e6d0be45cc
commit
5b7a7a9fa0
@ -51,3 +51,15 @@
|
|||||||
url: https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64
|
url: https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64
|
||||||
dest: /usr/local/bin/docker-compose
|
dest: /usr/local/bin/docker-compose
|
||||||
mode: 744
|
mode: 744
|
||||||
|
|
||||||
|
- name: Create docker group
|
||||||
|
group:
|
||||||
|
name: docker
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Add deploy user to docker group
|
||||||
|
user:
|
||||||
|
name: "{{ item.username }}"
|
||||||
|
groups: docker
|
||||||
|
append: yes
|
||||||
|
with_items: '{{ deploy_users }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user