ignore_errors instead of failed_when: false
This commit is contained in:
parent
015e50c6f9
commit
e421d9bf5e
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
- name: Configure | Check if member is in cluster
|
- name: Configure | Check if member is in cluster
|
||||||
shell: "{{ bin_dir }}/etcdctl --no-sync --peers={{ etcd_access_addresses }} member list | grep -q {{ etcd_access_address }}"
|
shell: "{{ bin_dir }}/etcdctl --no-sync --peers={{ etcd_access_addresses }} member list | grep -q {{ etcd_access_address }}"
|
||||||
register: etcd_member_in_cluster
|
register: etcd_member_in_cluster
|
||||||
failed_when: false
|
ignore_errors: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when: is_etcd_master
|
when: is_etcd_master
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Configure | Check if cluster is healthy
|
- name: Configure | Check if cluster is healthy
|
||||||
shell: "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
shell: "{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} cluster-health | grep -q 'cluster is healthy'"
|
||||||
register: etcd_cluster_is_healthy
|
register: etcd_cluster_is_healthy
|
||||||
failed_when: false
|
ignore_errors: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
when: is_etcd_master
|
when: is_etcd_master
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
headers: "{{ vault_client_headers }}"
|
headers: "{{ vault_client_headers }}"
|
||||||
status_code: 200,429,500,501
|
status_code: 200,429,500,501
|
||||||
validate_certs: no
|
validate_certs: no
|
||||||
failed_when: false
|
ignore_errors: true
|
||||||
register: vault_local_service_health
|
register: vault_local_service_health
|
||||||
|
|
||||||
- name: check_vault | Set facts about local Vault health
|
- name: check_vault | Set facts about local Vault health
|
||||||
|
|
Loading…
Reference in a new issue