Fix docker group to append group rather than set it

This commit is contained in:
James McCallum 2017-09-26 05:09:58 +10:00
parent 8c63471573
commit e68f0cbd16
2 changed files with 5 additions and 4 deletions

View File

@ -3,4 +3,5 @@
user: user:
name: "{{ item }}" name: "{{ item }}"
group: docker group: docker
append: yes
with_items: "{{ docker_users }}" with_items: "{{ docker_users }}"

View File

@ -1,8 +1,8 @@
--- ---
- include: setup-RedHat.yml - include_tasks: setup-RedHat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- include: setup-Debian.yml - include_tasks: setup-Debian.yml
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Install Docker. - name: Install Docker.
@ -14,8 +14,8 @@
state: started state: started
enabled: yes enabled: yes
- include: docker-compose.yml - include_tasks: docker-compose.yml
when: docker_install_compose when: docker_install_compose
- include: docker-users.yml - include_tasks: docker-users.yml
when: docker_users when: docker_users