Merge "Fix IHA with ansible 2.9"

This commit is contained in:
Zuul 2020-05-07 18:58:19 +00:00 committed by Gerrit Code Review
commit b31779e4df

View File

@ -1018,7 +1018,7 @@ outputs:
register: iha_nodes register: iha_nodes
- name: If instance HA is enabled on the node activate the evacuation completed check - name: If instance HA is enabled on the node activate the evacuation completed check
file: path=/var/lib/nova/instanceha/enabled state=touch file: path=/var/lib/nova/instanceha/enabled state=touch
when: iha_nodes.stdout|lower | search('"'+ansible_hostname|lower+'"') when: iha_nodes.stdout|lower is search('"'+ansible_hostname|lower+'"')
- name: is KSM enabled - name: is KSM enabled
set_fact: set_fact:
compute_ksm_enabled: {get_attr: [RoleParametersValue, value, compute_enable_ksm]} compute_ksm_enabled: {get_attr: [RoleParametersValue, value, compute_enable_ksm]}