From a02aacc406e219ad2d4c7920e4ed1631acb838b8 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 1 Jul 2020 15:43:07 +0200 Subject: [PATCH] Add user to docker group --- roles/docker/tasks/install-docker-io.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/docker/tasks/install-docker-io.yml b/roles/docker/tasks/install-docker-io.yml index cc1b2c5..86a150d 100644 --- a/roles/docker/tasks/install-docker-io.yml +++ b/roles/docker/tasks/install-docker-io.yml @@ -12,3 +12,8 @@ url: https://github.com/docker/compose/releases/download/{{ docker.compose.version }}/docker-compose-Linux-x86_64 dest: /usr/local/bin/docker-compose mode: 0755 + +- name: add current user to docker group + user: + name: {{ ansible_user_id }} + groups: docker