mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-15 02:38:32 +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
@ -34,7 +34,10 @@
|
|||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
- name: add user permissions
|
- name: add user permissions
|
||||||
shell: "usermod -aG docker {{ lookup('env','USER') }}"
|
shell: "usermod -aG docker {{ ansible_env.SUDO_USER }}"
|
||||||
|
|
||||||
|
- name: Reset ssh connection for changes to take effect
|
||||||
|
meta: "reset_connection"
|
||||||
|
|
||||||
# Installs Docker SDK
|
# Installs Docker SDK
|
||||||
# --
|
# --
|
||||||
@ -44,7 +47,7 @@
|
|||||||
name: python3-pip
|
name: python3-pip
|
||||||
|
|
||||||
- name: install python sdk
|
- name: install python sdk
|
||||||
become_user: "{{ lookup('env','USER') }}"
|
become_user: "{{ ansible_env.SUDO_USER }}"
|
||||||
pip:
|
pip:
|
||||||
name:
|
name:
|
||||||
- docker
|
- docker
|
||||||
|
Loading…
Reference in New Issue
Block a user