Optional list of users to add to docker group

This commit is contained in:
Kris Lamoureux 2020-09-02 21:21:14 -04:00
parent 3e527311b2
commit d87d5ff525
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -41,13 +41,13 @@
state: present
update_cache: true
- name: Add user to docker group
- name: Add users to docker group
user:
name: "{{ docker_user }}"
name: "{{ item }}"
groups: docker
skeleton: /etc/skel
shell: /bin/bash
append: true
loop: "{{ docker_users }}"
when: users is defined
- name: Install docker-compose
script: install-compose.sh