Merge "[OVN][Migration] More robust checks on stop-agents"
This commit is contained in:
commit
42ce0ea42c
@ -5,11 +5,15 @@
|
|||||||
state: stopped
|
state: stopped
|
||||||
enabled: no
|
enabled: no
|
||||||
become: yes
|
become: yes
|
||||||
|
when:
|
||||||
|
- ansible_facts.services[item] is defined
|
||||||
|
- ansible_facts.services[item]["state"] == "running"
|
||||||
loop:
|
loop:
|
||||||
- "{{ service.healthcheck_timer_file }}"
|
- "{{ service.healthcheck_timer_file }}"
|
||||||
- "{{ service.healthcheck_service_file }}"
|
- "{{ service.healthcheck_service_file }}"
|
||||||
- "{{ service.service_file }}"
|
- "{{ service.service_file }}"
|
||||||
|
|
||||||
|
# If file is already deleted this won't fail
|
||||||
- name: delete ml2 ovs systemd service files
|
- name: delete ml2 ovs systemd service files
|
||||||
file:
|
file:
|
||||||
path: "{{ systemd_service_file_dir }}/{{ item }}"
|
path: "{{ systemd_service_file_dir }}/{{ item }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user