Created
July 1, 2021 14:50
-
-
Save nleiva/95c8085fe79bc0f06ac8260f60204be7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Ensure group "docker" exists | |
ansible.builtin.group: | |
name: docker | |
state: present | |
- name: Append user {{ ansible_user }} to the group 'docker' | |
ansible.builtin.user: | |
name: "{{ ansible_user }}" | |
groups: docker | |
append: yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment