Pārlūkot izejas kodu

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
Michael Gugino 7 gadi atpakaļ
vecāks
revīzija
a73c943eaf
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      roles/openshift_master/tasks/journald.yml

+ 5 - 3
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