diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-05-16 14:16:32 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-05-16 14:16:32 -0400 |
commit | e3897f7be787ce729d51a150effe0fda9c08a08c (patch) | |
tree | 32596a5500e5322779a0a6ce9b8b44852e75f438 /roles/openshift_node | |
parent | 6600c694bedf88a246c0f8a2cccb9ae3c34dc6ea (diff) | |
parent | 1b720085f2448794190e224011a07134b9425310 (diff) | |
download | openshift-e3897f7be787ce729d51a150effe0fda9c08a08c.tar.gz openshift-e3897f7be787ce729d51a150effe0fda9c08a08c.tar.bz2 openshift-e3897f7be787ce729d51a150effe0fda9c08a08c.tar.xz openshift-e3897f7be787ce729d51a150effe0fda9c08a08c.zip |
Merge pull request #1859 from dgoodwin/containerized-upgrade
Containerized Upgrade Fixes
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/handlers/main.yml | 7 | ||||
-rw-r--r-- | roles/openshift_node/tasks/systemd_units.yml | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/roles/openshift_node/handlers/main.yml b/roles/openshift_node/handlers/main.yml index 1a1dc8ede..df3f6ee65 100644 --- a/roles/openshift_node/handlers/main.yml +++ b/roles/openshift_node/handlers/main.yml @@ -1,8 +1,9 @@ --- +- name: restart openvswitch + service: name=openvswitch state=restarted + when: not (ovs_service_status_changed | default(false) | bool) + - name: restart node service: name={{ openshift.common.service_type }}-node state=restarted when: not (node_service_status_changed | default(false) | bool) -- name: restart openvswitch - service: name=openvswitch state=restarted - when: not (ovs_service_status_changed | default(false) | bool) diff --git a/roles/openshift_node/tasks/systemd_units.yml b/roles/openshift_node/tasks/systemd_units.yml index be4b4ed61..f3262803a 100644 --- a/roles/openshift_node/tasks/systemd_units.yml +++ b/roles/openshift_node/tasks/systemd_units.yml @@ -14,6 +14,8 @@ dest: /etc/sysconfig/openvswitch when: openshift.common.is_containerized | bool register: install_ovs_sysconfig + notify: + - restart openvswitch - name: Install OpenvSwitch docker service file template: |