Take docker groups from user entry in inventory

This commit is contained in:
Stefan Haun 2020-12-09 18:56:32 +01:00
parent ddb2ff9229
commit bcc893df7e

View file

@ -79,7 +79,8 @@
- name: Place admin users in docker group - name: Place admin users in docker group
user: user:
name: "{{ item }}" name: "{{ item.logname }}"
groups: docker groups: docker
append: yes append: yes
with_items: "{{ docker_users }}" when: item.docker == true
with_items: "{{ users }}"