Merge pull request #50 from Sh3B0/patch-1

Use ansible_env fact instead of lookup plugin as the latter queries controller instead of remote
This commit is contained in:
Christian Lempa 2022-08-11 11:26:56 +02:00 committed by GitHub
commit 19886fe068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,11 @@
- 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.SUDO_USER }}"
- name: Reset ssh connection for changes to take effect
meta: "reset_connection"
# Installs Docker SDK
# --
@ -44,7 +47,7 @@
name: python3-pip
- name: install python sdk
become_user: "{{ lookup('env','USER') }}"
become_user: "{{ ansible_env.SUDO_USER }}"
pip:
name:
- docker