summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-10-31 09:23:47 -0400
committerGitHub <noreply@github.com>2017-10-31 09:23:47 -0400
commit9f28fd432b5eb9c69843c9450d451ddd27eabed6 (patch)
tree16cafdcfbf446501cc45df770a80d287f041f0c8 /roles
parentf879d554c44b529b26b9908cd61b0e7e7cebf102 (diff)
parenta73c943eaf423133c12930cc222c6338fa91d157 (diff)
downloadopenshift-9f28fd432b5eb9c69843c9450d451ddd27eabed6.tar.gz
openshift-9f28fd432b5eb9c69843c9450d451ddd27eabed6.tar.bz2
openshift-9f28fd432b5eb9c69843c9450d451ddd27eabed6.tar.xz
openshift-9f28fd432b5eb9c69843c9450d451ddd27eabed6.zip
Merge pull request #5930 from mgugino-upstream-stage/retry-journald-restart
Retry restarting journald
Diffstat (limited to 'roles')
-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