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:
Andrew Bonney 2023-09-13 11:27:21 +01:00 committed by Dmitriy Rabotyagov
parent 3569b7a27d
commit a190ae4f61

View File

@ -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']