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

17 lines
350 B
YAML
Raw Normal View History

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