summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-08-29 15:44:03 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-08-29 15:44:03 -0300
commitab613a33db8069bf51940feb1fa35616bbbfd360 (patch)
tree32c9fecaa0744c8ab7a24c2771e1c57d1cddb488 /roles/openshift_node/tasks
parent739648d2131a2723a21eafa4217203025438e729 (diff)
downloadopenshift-ab613a33db8069bf51940feb1fa35616bbbfd360.tar.gz
openshift-ab613a33db8069bf51940feb1fa35616bbbfd360.tar.bz2
openshift-ab613a33db8069bf51940feb1fa35616bbbfd360.tar.xz
openshift-ab613a33db8069bf51940feb1fa35616bbbfd360.zip
Reload units after node container service modified.
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml6
-rw-r--r--roles/openshift_node/tasks/systemd_units.yml6
2 files changed, 6 insertions, 6 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index 9c71af6d9..228c29b6c 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -55,12 +55,6 @@
- name: Install the systemd units
include: systemd_units.yml
-- name: Reload systemd units
- command: systemctl daemon-reload
- when: openshift.common.is_containerized | bool and (install_node_result | changed or install_ovs_sysconfig | changed or install_node_dep_result | changed)
- notify:
- - restart node
-
- name: Start and enable openvswitch docker service
service: name=openvswitch.service enabled=yes state=started
when: openshift.common.is_containerized | bool and openshift.common.use_openshift_sdn | bool
diff --git a/roles/openshift_node/tasks/systemd_units.yml b/roles/openshift_node/tasks/systemd_units.yml
index 39e5386d4..025cb567e 100644
--- a/roles/openshift_node/tasks/systemd_units.yml
+++ b/roles/openshift_node/tasks/systemd_units.yml
@@ -47,3 +47,9 @@
line: "IMAGE_VERSION={{ openshift_image_tag }}"
notify:
- restart node
+
+- name: Reload systemd units
+ command: systemctl daemon-reload
+ when: openshift.common.is_containerized | bool and (install_node_result | changed or install_ovs_sysconfig | changed or install_node_dep_result | changed)
+ notify:
+ - restart node