summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2017-12-06 12:08:45 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2017-12-08 18:41:57 +0100
commit40d63b7dfa8b88ad2459a86b436385612dbb2150 (patch)
treef8d9a77d4a22caf1567b5b83cdbd83c5affd36fa /roles
parent5431d1228d795cf6d0f5087779ad9136b847f428 (diff)
downloadopenshift-40d63b7dfa8b88ad2459a86b436385612dbb2150.tar.gz
openshift-40d63b7dfa8b88ad2459a86b436385612dbb2150.tar.bz2
openshift-40d63b7dfa8b88ad2459a86b436385612dbb2150.tar.xz
openshift-40d63b7dfa8b88ad2459a86b436385612dbb2150.zip
openshift_node: reintroduce restart of CRI-O.
change introduced with 39cf5084f18e2e0adca46b925660a6f2c38d227c Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_node/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index d9f3e920d..32c5f495f 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -44,6 +44,15 @@
- name: include node installer
include_tasks: install.yml
+- name: Restart cri-o
+ systemd:
+ name: cri-o
+ enabled: yes
+ state: restarted
+ when: openshift_use_crio
+ register: task_result
+ failed_when: task_result|failed and 'could not find the requested service' not in task_result.msg|lower
+
- name: restart NetworkManager to ensure resolv.conf is present
systemd:
name: NetworkManager