mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-07 08:54:04 +01:00
Refactor user permissions task to use Ansible user module
This commit is contained in:
parent
05ac0b680f
commit
a5378bc268
@ -9,7 +9,9 @@
|
||||
- docker.io
|
||||
update_cache: yes
|
||||
- name: add user permissions
|
||||
shell: "usermod -aG docker {{ ansible_env.SUDO_USER }}"
|
||||
user:
|
||||
name: "{{ ansible_env.SUDO_USER }}"
|
||||
groups: docker
|
||||
- name: Reset ssh connection for changes to take effect
|
||||
meta: "reset_connection"
|
||||
- name: install python package manager
|
||||
|
Loading…
Reference in New Issue
Block a user