mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-24 17:24:25 +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
|
||||
@ -20,4 +22,4 @@
|
||||
pip:
|
||||
name:
|
||||
- docker
|
||||
- docker-compose
|
||||
- docker-compose
|
||||
|
Loading…
Reference in New Issue
Block a user