From 1e9999fe5c86d32c4d726b131497b5b0c866ecf2 Mon Sep 17 00:00:00 2001 From: sh3b0 Date: Thu, 16 Jun 2022 03:40:46 +0300 Subject: [PATCH] Update install-docker.yaml --- ansible/provisoning/ubuntu/install-docker.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/provisoning/ubuntu/install-docker.yaml b/ansible/provisoning/ubuntu/install-docker.yaml index b5b0b7c..b77e003 100644 --- a/ansible/provisoning/ubuntu/install-docker.yaml +++ b/ansible/provisoning/ubuntu/install-docker.yaml @@ -34,7 +34,7 @@ update_cache: yes - name: add user permissions - shell: "usermod -aG docker {{ ansible_env.USER }}" + shell: "usermod -aG docker {{ ansible_env.SUDO_USER }}" # Installs Docker SDK # -- @@ -44,7 +44,7 @@ name: python3-pip - name: install python sdk - become_user: "{{ ansible_env.USER }}" + become_user: "{{ ansible_env.SUDO_USER }}" pip: name: - docker