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
user:
name: "{{ item }}"
name: "{{ item.logname }}"
groups: docker
append: yes
with_items: "{{ docker_users }}"
when: item.docker == true
with_items: "{{ users }}"