Files
ansible-automations/roles/docker/tasks/addusers.yml
Noah Knegt dbea3b8b14
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Fix the yamllint errors
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-03-31 11:38:00 +02:00

18 lines
696 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
user:
name: "{{ item }}"
groups: docker
append: true
with_items: "{{ docker_users }}"
when: docker_users is defined