mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 20:14:31 +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.
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
---
|
|
- name: Sanity check mariadb_tools task files
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
become: false
|
|
|
|
tasks:
|
|
- name: Read export task file
|
|
ansible.builtin.set_fact:
|
|
_export_tasks: "{{ lookup('ansible.builtin.file', playbook_dir ~ '/../tasks/k3s_datastore_export.yml') }}"
|
|
|
|
- name: Assert export task file contains expected primitives
|
|
ansible.builtin.assert:
|
|
that:
|
|
- _export_tasks is search('mysqldump')
|
|
- _export_tasks is search('--single-transaction')
|
|
- _export_tasks is search('mariadb_dumpfile')
|
|
fail_msg: "Export task file missing expected mysqldump/flags/output handling."
|
|
|
|
- name: Read import task file
|
|
ansible.builtin.set_fact:
|
|
_import_tasks: "{{ lookup('ansible.builtin.file', playbook_dir ~ '/../tasks/k3s_datastore_import.yml') }}"
|
|
|
|
- name: Assert import task requires mariadb_import_dumpfile
|
|
ansible.builtin.assert:
|
|
that:
|
|
- _import_tasks is search('mariadb_import_dumpfile')
|
|
- _import_tasks is search('mysql --protocol=socket')
|
|
fail_msg: "Import task file missing required var checks and/or socket import path."
|