Remove handler delegation for DB contract

There is no reason to perform that kind of delegation, as handler should
run only for one host out of the play anyway.

Even more, this delegation might cause failures in case of running role
with limits, as `neutron_bin` on play host may not exist on the
delegated host during minor upgrades, for instance.

Change-Id: Ic8d8aae75dd58a30cd41327fe62009cc0dfb8bbb
This commit is contained in:
Dmitriy Rabotyagov 2024-06-12 13:50:10 +02:00
parent a53b28c8da
commit 4f0187e7fc

View File

@ -112,7 +112,6 @@
command: "{{ neutron_bin }}/neutron-db-manage upgrade --contract"
become: yes
become_user: "{{ neutron_system_user_name }}"
delegate_to: "{{ groups[neutron_services['neutron-server']['group']][0] }}"
changed_when: false
when:
- "ansible_local['openstack_ansible']['neutron']['need_db_contract'] | bool"