browsertrix/ansible/roles/microk8s/debian/tasks/main.yml
Anish Lakhwara 834fa72baf
Refactor microk8s playbook to follow "new" structure (#1264)
* Refactor microk8s playbook to follow structure with shared roles

- Integrates with btrix/deploy role for deploying
- Seperated RedHat and Debian into seperate roles
- Created Common role

- allow running remotely by default
- use 'browsertrix_cloud_home' for charts path
- add additional customizable options to btrix_values.j2 (todo: unify all the templates)
- docs: update to new playbook path

---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2023-10-11 19:33:30 -07:00

38 lines
841 B
YAML

---
# ===========================================
# Install microk8s
- name: microk8s | ensure dependencies are installed (Debian)
ansible.builtin.apt:
name:
- snapd
- fuse
- udev
- git
- acl
state: present
update_cache: true
cache_valid_time: "{{ microk8s_cache_valid_time }}"
when:
- ansible_os_family == "Debian"
tags:
- microk8s
- microk8s.dependencies
- microk8s.dependencies.apt
- name: microk8s | start and enable services (Debian)
ansible.builtin.service:
name: "{{ microk8s_service }}"
state: started
enabled: true
loop:
- udev
loop_control:
loop_var: microk8s_service
label: "{{ microk8s_service }}"
when:
- ansible_os_family == "Debian"
tags:
- microk8s
- microk8s.dependencies
- microk8s.dependencies.services