Merge "Check for rc instead of |succeeded"
This commit is contained in:
commit
99111015c1
@ -308,7 +308,7 @@ outputs:
|
||||
register: cinder_backup_pcs_res_result
|
||||
- name: Set fact cinder_backup_pcs_res
|
||||
set_fact:
|
||||
cinder_backup_pcs_res: "{{cinder_backup_pcs_res_result|succeeded}}"
|
||||
cinder_backup_pcs_res: "{{cinder_backup_pcs_res_result.rc == 0}}"
|
||||
- name: set is_cinder_backup_bootstrap_node fact
|
||||
tags: common
|
||||
set_fact: is_cinder_backup_bootstrap_node={{cinder_backup_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
|
@ -301,7 +301,7 @@ outputs:
|
||||
register: cinder_volume_pcs_res_result
|
||||
- name: Set fact cinder_volume_pcs_res
|
||||
set_fact:
|
||||
cinder_volume_pcs_res: "{{cinder_volume_pcs_res_result|succeeded}}"
|
||||
cinder_volume_pcs_res: "{{cinder_volume_pcs_res_result.rc == 0}}"
|
||||
- name: set is_cinder_volume_bootstrap_node fact
|
||||
tags: common
|
||||
set_fact: is_cinder_volume_bootstrap_node={{cinder_volume_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
|
@ -453,7 +453,7 @@ outputs:
|
||||
register: galera_pcs_res_result
|
||||
- name: Set fact galera_pcs_res
|
||||
set_fact:
|
||||
galera_pcs_res: "{{galera_pcs_res_result|succeeded}}"
|
||||
galera_pcs_res: "{{galera_pcs_res_result.rc == 0}}"
|
||||
- name: set is_mysql_bootstrap_node fact
|
||||
tags: common
|
||||
set_fact: is_mysql_bootstrap_node={{mysql_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
|
@ -391,7 +391,7 @@ outputs:
|
||||
register: redis_pcs_res_result
|
||||
- name: Set upgrade redis facts
|
||||
set_fact:
|
||||
redis_pcs_res: "{{redis_pcs_res_result|succeeded}}"
|
||||
redis_pcs_res: "{{redis_pcs_res_result.rc == 0}}"
|
||||
is_redis_bootstrap_node: "{{redis_short_bootstrap_node_name|lower == ansible_hostname|lower}}"
|
||||
- name: Update redis-bundle pcs resource bundle for new container image
|
||||
when:
|
||||
|
@ -471,7 +471,7 @@ outputs:
|
||||
register: haproxy_pcs_res_result
|
||||
- name: Set upgrade haproxy facts
|
||||
set_fact:
|
||||
haproxy_pcs_res: "{{haproxy_pcs_res_result|succeeded}}"
|
||||
haproxy_pcs_res: "{{haproxy_pcs_res_result.rc == 0}}"
|
||||
is_haproxy_bootstrap_node: "{{haproxy_short_bootstrap_node_name|lower == ansible_hostname|lower}}"
|
||||
|
||||
- name: Update haproxy pcs resource bundle for new container image
|
||||
|
@ -293,7 +293,7 @@ outputs:
|
||||
register: manila_share_pcs_res_result
|
||||
- name: Set fact manila_share_pcs_res
|
||||
set_fact:
|
||||
manila_share_pcs_res: "{{manila_share_pcs_res_result|succeeded}}"
|
||||
manila_share_pcs_res: "{{manila_share_pcs_res_result.rc == 0}}"
|
||||
- name: set is_manila_share_bootstrap_node fact
|
||||
tags: common
|
||||
set_fact: is_manila_share_bootstrap_node={{manila_share_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
|
@ -350,7 +350,7 @@ outputs:
|
||||
register: rabbitmq_pcs_res_result
|
||||
- name: Set fact rabbitmq_pcs_res
|
||||
set_fact:
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result|succeeded}}"
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result.rc == 0}}"
|
||||
- name: set is_notify_rabbitmq_bootstrap_node fact
|
||||
set_fact: is_notify_rabbitmq_bootstrap_node={{oslo_messaging_notify_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
- name: Update rabbitmq-bundle pcs resource bundle for new container image
|
||||
|
@ -350,7 +350,7 @@ outputs:
|
||||
register: rabbitmq_pcs_res_result
|
||||
- name: Set fact rabbitmq_pcs_res
|
||||
set_fact:
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result|succeeded}}"
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result.rc == 0}}"
|
||||
- name: set is_rabbitmq_bootstrap_node fact
|
||||
tags: common
|
||||
set_fact: is_rabbitmq_bootstrap_node={{rabbitmq_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
|
@ -350,7 +350,7 @@ outputs:
|
||||
register: rabbitmq_pcs_res_result
|
||||
- name: Set fact rabbitmq_pcs_res
|
||||
set_fact:
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result|succeeded}}"
|
||||
rabbitmq_pcs_res: "{{rabbitmq_pcs_res_result.rc == 0}}"
|
||||
- name: set is_rpc_rabbitmq_bootstrap_node fact
|
||||
set_fact: is_rpc_rabbitmq_bootstrap_node={{oslo_messaging_rpc_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
- name: Update rabbitmq-bundle pcs resource bundle for new container image
|
||||
|
Loading…
Reference in New Issue
Block a user