summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-10-30 09:54:13 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-30 10:19:35 -0400
commita73c943eaf423133c12930cc222c6338fa91d157 (patch)
treeb3b8dba3b779e081f977cdac9f2aef87303e3acc /roles/openshift_master/tasks
parent0b95dea19dd60ca6a485b93b8d4bc7ead46e2a08 (diff)
downloadopenshift-a73c943eaf423133c12930cc222c6338fa91d157.tar.gz
openshift-a73c943eaf423133c12930cc222c6338fa91d157.tar.bz2
openshift-a73c943eaf423133c12930cc222c6338fa91d157.tar.xz
openshift-a73c943eaf423133c12930cc222c6338fa91d157.zip
Retry restarting journald
Sometimes journald fails to restart cleanly during upgrades. This commit retries restarting 3 times. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1506141
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/journald.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/roles/openshift_master/tasks/journald.yml b/roles/openshift_master/tasks/journald.yml
index e2edd5ef4..a16cbe78e 100644
--- a/roles/openshift_master/tasks/journald.yml
+++ b/roles/openshift_master/tasks/journald.yml
@@ -21,7 +21,9 @@
# I need to restart journald immediatelly, otherwise it gets into way during
# further steps in ansible
- name: Restart journald
- systemd:
- name: systemd-journald
- state: restarted
+ command: "systemctl restart systemd-journald"
+ retries: 3
+ delay: 5
+ register: result
+ until: result.rc == 0
when: journald_update | changed