Skip to content

Commit

Permalink
Merge pull request #1406 from guardian/pm-docker-linux-postinstall
Browse files Browse the repository at this point in the history
Apply docker postinstall steps when installing dockerAdd ubuntu user to docker user group
  • Loading branch information
philmcmahon authored Feb 7, 2024
2 parents 4f6d55a + 4b88060 commit 9b04673
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
update_cache: yes
state: present

# See https://docs.docker.com/engine/install/linux-postinstall/ for why we're doing these steps
- name: Create docker group
group:
name: docker

- name: Add ubuntu user to docker group
user:
name: ubuntu
groups: docker
append: yes
when: ansible_distribution == "Ubuntu"

0 comments on commit 9b04673

Please sign in to comment.