[ 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
This commit is contained in:
Arnau Verdaguer 2022-03-02 12:23:37 +01:00
parent 6a571f8068
commit 5ee94a5b9b
1 changed files with 4 additions and 0 deletions

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: |