prole/infrastructure/roles/k3s/tasks/start_k3s_servers.yml
chrisfu d2295f4c2b ansible: add K3s datastore export/import, improve iSCSI handling, and migrate merlin to MariaDB primary
- Added tasks and playbooks for K3s datastore export/import using MariaDB Tools role, with associated tests and defaults.
- Enhanced iSCSI role to support mkfs-once logic and safer re-initialization of block storage.
- Migrated iSCSI-backed Rancher data from retropie to merlin.prole.org.
- Updated k3s roles/playbooks to relax Rancher storage preflight checks, supporting PARTUUID-based mounts.
- Adjusted Samba AD NetBIOS name derivation to use uppercase short hostname by default.
- Incremented prole DB version to 104, updated generated prole.cfg, inventory, and recovery manifest templates.
2026-03-06 14:25:13 -08:00

22 lines
621 B
YAML

---
- name: Gather service facts
ansible.builtin.service_facts:
- name: Require k3s service to exist
ansible.builtin.assert:
that:
- ('k3s' + '.service') in ansible_facts.services
- ansible_facts.services['k3s' + '.service'].status != 'not-found'
fail_msg: "k3s service is not installed on {{ inventory_hostname }}."
when: not ansible_check_mode
- name: Start k3s
ansible.builtin.systemd:
name: k3s
state: started
enabled: true
no_block: true
when:
- ('k3s' + '.service') in ansible_facts.services
- ansible_facts.services['k3s' + '.service'].status != 'not-found'