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