mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 00:03:16 +01:00
Update install-docker.yaml
Use ansible_env fact instead of lookup plugin as it queries controller instead of remote
This commit is contained in:
parent
4d4506d34c
commit
6bbd357570
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user