mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 15:44:33 +00:00
- 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.
22 lines
669 B
YAML
22 lines
669 B
YAML
---
|
|
- name: Gather service facts
|
|
ansible.builtin.service_facts:
|
|
|
|
- name: Require k3s-agent service to exist
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ('k3s-agent' + '.service') in ansible_facts.services
|
|
- ansible_facts.services['k3s-agent' + '.service'].status != 'not-found'
|
|
fail_msg: "k3s-agent service is not installed on {{ inventory_hostname }}."
|
|
when: not ansible_check_mode
|
|
|
|
- name: Start k3s-agent
|
|
ansible.builtin.systemd:
|
|
name: k3s-agent
|
|
state: started
|
|
enabled: true
|
|
no_block: true
|
|
when:
|
|
- ('k3s-agent' + '.service') in ansible_facts.services
|
|
- ansible_facts.services['k3s-agent' + '.service'].status != 'not-found'
|