christianlempa-boilerplates/ansible/installation/inst-microk8s.yaml
2024-03-03 17:35:14 +01:00

17 lines
350 B
YAML

---
- name: Install microk8s
hosts: "{{ my_hosts | d([]) }}"
become: true
tasks:
- name: Install microk8s
community.general.snap:
classic: true
name: microk8s
- name: Add user to group microk8s
ansible.builtin.user:
name: "{{ lookup('env', 'USER') }}"
groups: microk8s
append: true