mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-13 17:58:24 +01:00
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:
commit
19886fe068
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user