Update install-docker.yaml

Use ansible_env fact instead of lookup plugin as it queries controller instead of remote
This commit is contained in:
Ahmed Nouralla 2022-06-16 03:03:36 +03:00 committed by GitHub
parent 4d4506d34c
commit 6bbd357570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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