Skip to content

Commit 9ba8cd6

Browse files
committed
fix: replace ignore_errors with failed_when for ansible-lint compliance
ansible-lint ignore-errors rule requires failed_when instead of ignore_errors for explicit error condition specification. Signed-off-by: John Lockman <jlockman3@gmail.com>
1 parent c52234b commit 9ba8cd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

provision/roles/k8s_config/tasks/create_compute_rke2_config_nfs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
compute_enable_k8s_ha: "{{ compute_rke2_k8s_cluster_ha[0].enable_k8s_ha | default(false) }}"
6767
compute_kube_vip: "{{ compute_rke2_k8s_cluster_ha[0].virtual_ip_address | default('') }}"
6868
when: compute_rke2_k8s_cluster_ha is defined
69-
ignore_errors: true
69+
failed_when: false
7070

7171
- name: Set default HA facts when compute_rke2_k8s_cluster_ha is not defined
7272
ansible.builtin.set_fact:

0 commit comments

Comments
 (0)