Use ansible_facts instead
In order to ANSIBLE_INJECT_FACT_VARS=False we have to use ansible_facts instead of ansible_* vars. This change switches our distribution and hostname related items to use ansible_facts instead. Change-Id: I49a2c42dcbb74671834f312798367f411c819813 Related-Bug: #1915761
This commit is contained in:
@@ -274,7 +274,7 @@ outputs:
|
||||
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}}
|
||||
set_fact: is_manila_share_bootstrap_node={{manila_share_short_bootstrap_node_name|lower == ansible_facts['hostname']|lower}}
|
||||
- name: Update openstack-manila-share pcs resource bundle for new container image
|
||||
when:
|
||||
- step|int == 1
|
||||
|
||||
Reference in New Issue
Block a user