mirror of
https://github.com/openshift/openshift-ansible.git
synced 2026-02-05 06:46:04 +01:00
Merge pull request #12516 from openshift-cherrypick-robot/cherry-pick-12513-to-release-4.13
[release-4.13] OCPBUGS-41723: Restart the openvswitch service on [re]install
This commit is contained in:
@@ -107,6 +107,21 @@
|
||||
Please ensure repos are configured properly to provide these packages
|
||||
and indicated versions.
|
||||
|
||||
# Changes are possible to daemons on update. Reload for the most updated state
|
||||
- name: reload systemd daemons
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
# gather facts to ensure that openvswitch is defined for the next task
|
||||
- name: gather service facts
|
||||
ansible.builtin.service_facts:
|
||||
|
||||
- name: Restart openvswitch
|
||||
systemd:
|
||||
name: openvswitch
|
||||
state: restarted
|
||||
when: ansible_facts.services['openvswitch.service'] is defined
|
||||
|
||||
- name: Enable the CRI-O service
|
||||
systemd:
|
||||
name: "crio"
|
||||
|
||||
Reference in New Issue
Block a user