Add deploy_users to docker group

This commit is contained in:
Bertrand Benjamin 2018-08-28 14:38:29 +02:00
parent e6d0be45cc
commit 5b7a7a9fa0

View File

@ -51,3 +51,15 @@
url: https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
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 }}'