Adds user list in variable docker_users to docker group #5

Merged
jotbe merged 1 commit from bugfix/docker-users-group into master 2023-12-11 19:14:06 +01:00

View file

@ -11,6 +11,14 @@
groups: users
with_items: "{{ users }}"
- name: 'Add docker users'
user:
name: "{{ item }}"
groups: docker
append: yes
with_items: "{{ docker_users }}"
when: docker_users | count
- block:
- name: 'Ensure that sudo group is existing'
group: