Files
ansible-automations/roles/docker/tasks/addusers.yml
Noah Knegt 3acee103d1
All checks were successful
continuous-integration/drone/push Build is passing
Fix the permissions for changing users
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-03-31 11:48:51 +02:00

19 lines
711 B
YAML

# ===================================================================================================
# ? ABOUT
# @author : Noah Knegt
# @email : personal@noahknegt.com
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
# @createdOn : 31-03-2023
# @description : This will add selected users to the docker group.
# ===================================================================================================
---
- name: Add users to the docker group
become: true
user:
name: "{{ item }}"
groups: docker
append: true
with_items: "{{ docker_users }}"
when: docker_users is defined