mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-08-09 07:23:19 +02:00
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:
committed by
Techno Tim
parent
5bc347aed4
commit
87ea8160c1
@@ -20,3 +20,26 @@
|
||||
enabled: false
|
||||
state: stopped
|
||||
become: true
|
||||
|
||||
- name: Verify GitHub release host DNS
|
||||
ansible.builtin.getent:
|
||||
database: hosts
|
||||
key: github.com
|
||||
register: github_dns
|
||||
retries: 6
|
||||
delay: 5
|
||||
until: github_dns is succeeded
|
||||
|
||||
- name: Verify k3s checksum URL is reachable
|
||||
ansible.builtin.uri:
|
||||
url: >-
|
||||
https://github.com/k3s-io/k3s/releases/download/{{ k3s_version
|
||||
}}/sha256sum-amd64.txt
|
||||
method: HEAD
|
||||
follow_redirects: safe
|
||||
status_code: [200, 302]
|
||||
timeout: 15
|
||||
register: k3s_checksum_request
|
||||
retries: 3
|
||||
delay: 5
|
||||
until: k3s_checksum_request.status in [200, 302]
|
||||
|
||||
Reference in New Issue
Block a user