Files
ansible-automations/roles/docker/tasks/addusers.yml
Noah Knegt a41d3550c5
Some checks failed
continuous-integration/drone/push Build is failing
Make sure users are added to the docker group. This is required to run docker commands without sudo.
Signed-off-by: Noah Knegt <git@noahknegt.com>
2023-03-31 11:33:59 +02:00

18 lines
695 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: yes
with_items: "{{ docker_users }}"
when: docker_users is defined