Merge pull request #26 from jamesla/master

Add a docker_users variable
This commit is contained in:
Jeff Geerling
2018-05-06 17:45:53 -05:00
committed by GitHub
4 changed files with 19 additions and 0 deletions

7
tasks/docker-users.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: Ensure docker users are added to the docker group.
user:
name: "{{ item }}"
group: docker
append: yes
with_items: "{{ docker_users }}"

View File

@@ -23,3 +23,6 @@
- include_tasks: docker-compose.yml
when: docker_install_compose
- include: docker-users.yml
when: docker_users