Skip to content

Commit

Permalink
Add to docker group if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
drmalex07 committed Sep 13, 2017
1 parent dd7dc38 commit 1f65c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/docker-engine/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

- name: Add user to docker group
user:
name: '{{ansible_ssh_user}}'
name: '{{ansible_env.USER}}'
groups: docker
append: yes
when: ansible_env.USER != 'root'
sudo: yes
sudo_user: root

Expand Down

0 comments on commit 1f65c19

Please sign in to comment.