fix(ci): harden Molecule download and cleanup

- Retry transient k3s release downloads with bounded backoff.\n- Bound failure diagnostics and validate guest release connectivity.\n- Discover repository-owned Molecule state under the actual project root.
This commit is contained in:
Timothy Stewart committed 2026-07-31 10:51:44 -05:00
1 parent 116fc10c67
commit db7e95e947
6 files changed
+69 -10

No files matched your search

+12
View File
@@ -7,6 +7,10 @@
owner: root
group: root
mode: "0755"
register: k3s_download_x64
retries: 5
delay: 10
until: k3s_download_x64 is succeeded
when: ansible_facts.architecture == "x86_64"
- name: Download k3s binary arm64
@@ -17,6 +21,10 @@
owner: root
group: root
mode: "0755"
register: k3s_download_arm64
retries: 5
delay: 10
until: k3s_download_arm64 is succeeded
when:
- ( ansible_facts.architecture is search("arm") and ansible_facts.userspace_bits == "64" )
or ansible_facts.architecture is search("aarch64")
@@ -29,6 +37,10 @@
owner: root
group: root
mode: "0755"
register: k3s_download_armhf
retries: 5
delay: 10
until: k3s_download_armhf is succeeded
when:
- ansible_facts.architecture is search("arm")
- ansible_facts.userspace_bits == "32"
@@ -4,8 +4,11 @@
- name: Fetch k3s-init.service logs
ansible.builtin.command:
cmd: journalctl --all --unit=k3s-init.service
cmd: >-
timeout --signal=TERM 30s journalctl --no-pager
--unit=k3s-init.service --since=-30min --lines=5000
changed_when: false
failed_when: false
register: k3s_init_log
- name: Create {{ log_destination }}