mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-24 17:24:25 +01:00
fix: replace shell commands by Ansible modules
This commit is contained in:
parent
b46f18d437
commit
d06aab167e
@ -9,5 +9,8 @@
|
||||
classic: true
|
||||
name: microk8s
|
||||
|
||||
- name: Add user permissions
|
||||
ansible.builtin.shell: "usermod -aG microk8s {{ lookup('env', 'USER') }}"
|
||||
- name: Add user to group microk8s
|
||||
ansible.builtin.user:
|
||||
name: "{{ lookup('env', 'USER') }}"
|
||||
groups: microk8s
|
||||
append: true
|
||||
|
@ -31,5 +31,8 @@
|
||||
- docker-compose
|
||||
update_cache: true
|
||||
|
||||
- name: Add user permissions
|
||||
ansible.builtin.shell: "usermod -aG docker vagrant"
|
||||
- name: Add user vagrant to group docker
|
||||
ansible.builtin.user:
|
||||
name: vagrant
|
||||
groups: docker
|
||||
append: true
|
||||
|
@ -9,5 +9,8 @@
|
||||
classic: true
|
||||
name: microk8s
|
||||
|
||||
- name: Add user permissions
|
||||
ansible.builtin.shell: "usermod -aG microk8s vagrant"
|
||||
- name: Add user vagrant to group microk8s
|
||||
ansible.builtin.user:
|
||||
name: vagrant
|
||||
groups: microk8s
|
||||
append: true
|
||||
|
Loading…
Reference in New Issue
Block a user