From 6bbd3575709cc68cb6b53f5cdb390b3c66cd7f96 Mon Sep 17 00:00:00 2001 From: Ahmed Nouralla <40727318+Sh3B0@users.noreply.github.com> Date: Thu, 16 Jun 2022 03:03:36 +0300 Subject: [PATCH] Update install-docker.yaml Use ansible_env fact instead of lookup plugin as it queries controller instead of remote --- ansible/provisoning/ubuntu/install-docker.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/provisoning/ubuntu/install-docker.yaml b/ansible/provisoning/ubuntu/install-docker.yaml index 808bdf4..b5b0b7c 100644 --- a/ansible/provisoning/ubuntu/install-docker.yaml +++ b/ansible/provisoning/ubuntu/install-docker.yaml @@ -33,8 +33,8 @@ - containerd.io update_cache: yes - - name: add userpermissions - shell: "usermod -aG docker {{ lookup('env','USER') }}" + - name: add user permissions + shell: "usermod -aG docker {{ ansible_env.USER }}" # Installs Docker SDK # -- @@ -44,7 +44,7 @@ name: python3-pip - name: install python sdk - become_user: "{{ lookup('env','USER') }}" + become_user: "{{ ansible_env.USER }}" pip: name: - docker