fix(nfc_kubernetes): adjust some tasks to run during checkmode

these tasks make no change and are required for checkmode to function as it's intended

!59 fixes #26
This commit is contained in:
2024-04-25 16:24:31 +09:30
parent f09a71ef77
commit 5efd9807f6
4 changed files with 10 additions and 2 deletions

View File

@ -274,6 +274,7 @@
executable: /bin/bash
changed_when: false
check_mode: false
failed_when: false
register: k3s_metadata
@ -320,6 +321,8 @@
- 304
dest: "/tmp/k3s.{{ cpu_arch.key }}"
mode: "744"
changed_when: not ansible_check_mode
check_mode: false
delay: 10
retries: 3
register: k3s_download_files
@ -395,6 +398,7 @@
- 304
dest: "{{ item.dest }}"
mode: "744"
check_mode: false
changed_when: false
delay: 10
retries: 3
@ -600,6 +604,8 @@
failed_when: kubernetes_ready_check.rc != 0
when: >
not nfc_role_kubernetes_cluster_upgraded | default(false) | bool
and
not ansible_check_mode
- name: Config Link