mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 16:23:25 +01:00
17 lines
350 B
YAML
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
|