christianlempa-boilerplates/ansible/installation/inst-microk8s.yaml

12 lines
289 B
YAML
Raw Normal View History

2023-05-25 13:48:38 +02:00
---
- name: install microk8s
hosts: "{{ hosts }}"
become: yes
tasks:
- name: install microk8s
community.general.snap:
2023-05-25 13:48:38 +02:00
classic: yes
name: microk8s
- name: add userpermissions
ansible.builtin.shell: "usermod -aG microk8s {{ lookup('env','USER') }}"