browsertrix/ansible/install_microk8s.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

24 lines
534 B
YAML

---
- hosts: all
gather_facts: yes
become: yes
vars_files:
- inventory/microk8s/group_vars/main.yml
roles:
- microk8s/debian # Change to redhat if using a redhat distro
- microk8s/common
- btrix/deploy
handlers:
- name: Reboot System
ansible.builtin.reboot:
when:
- skip_handlers | default("false") == "false"
- name: microk8s ready
ansible.builtin.command:
cmd: microk8s.status --wait-ready
changed_when: false
when:
- skip_handlers | default("false") == "false"