Fix conditional for non-OVN deployments
In an LXB environment, the neutron_ovn_controller group still contains all of the compute nodes, which causes this task to fail. Change-Id: I7a63a79e8b9012c9f32b9316d9590ccd9e641c01
This commit is contained in:
parent
3569b7a27d
commit
a190ae4f61
@ -221,6 +221,7 @@
|
||||
enabled: false
|
||||
when:
|
||||
- ansible_facts['pkg_mgr'] == 'apt'
|
||||
- ansible_facts['hostname'] in groups['neutron_metadata_agent'] or ansible_facts['hostname'] in groups['neutron_ovn_controller']
|
||||
- ansible_facts['hostname'] in groups['neutron_metadata_agent'] or (
|
||||
neutron_plugin_type == 'ml2.ovn' and ansible_facts['hostname'] in groups['neutron_ovn_controller'])
|
||||
- groups['haproxy_all'] is defined
|
||||
- ansible_facts['hostname'] not in groups['haproxy_all']
|
||||
|
Loading…
Reference in New Issue
Block a user