From 4f0187e7fc77f51dee4c13e712ee837bb713c5a4 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 12 Jun 2024 13:50:10 +0200 Subject: [PATCH] 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 --- handlers/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 62a44e0f..934aefed 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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"