[ OVN ][Migration] Reload systemctl daemon after removal

After stopping and deleting the services if this role is runned
again it could fail bc systemd has still some ovs services loaded
(eventhough the service is stopped) this will cause that ansible
will try to delete again and fail while trying to disable and
delete the service.

Change-Id: If51d7f25375768f8c60492c84d84e91d91886025
(cherry picked from commit 5ee94a5b9b)
This commit is contained in:
Arnau Verdaguer
2022-03-02 12:23:37 +01:00
parent b0b17dad0a
commit c9de2e89df

View File

@@ -9,6 +9,10 @@
loop_var: service
when: ansible_facts.services[service.service_file] is defined
- name: Reload systemctl daemons
systemd:
daemon_reload: yes
- name: remove containers
become: yes
shell: |