Skip to content

Commit

Permalink
ansible: Restart ovn-controller after certificate update
Browse files Browse the repository at this point in the history
ovn-controller service is not restarted after OVN certificate update.
Unlike other services, which are restarted after enrolling
certificates, this one is not restarted together with libvirtd
restart and needs its own restart action.

Bug-Url: https://bugzilla.redhat.com/2079901
  • Loading branch information
mz-pdm committed May 2, 2022
1 parent 7f93d50 commit f5259ab
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@
mode: 0440
remote_src: yes

- name: Populate service facts
service_facts:

- name: Restart OVN service
service:
name: ovn-controller
state: restarted
when: "ansible_facts.services.get('ovn-controller.service', {}).get('status') == 'enabled'"

always:
- name: Remove temp file
file:
Expand Down

0 comments on commit f5259ab

Please sign in to comment.