Commit 5391019f authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

Revert "single pipe for cron job"

This reverts commit 336cde56.
parent 336cde56
Pipeline #42764 passed with stage
in 2 minutes and 21 seconds
......@@ -20,7 +20,7 @@
minute: "{{ rebootOnChange_minute }}"
hour: "{{ rebootOnChange_hour }}"
user: "root"
job: '/usr/bin/sh -c "yum update -y && /usr/bin/needs-restarting -r | /usr/sbin/shutdown -r" > /dev/null'
job: '/usr/bin/sh -c "yum update -y && /usr/bin/needs-restarting -r || /usr/sbin/shutdown -r" > /dev/null'
become: true
when: "nrec_instance | bool"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment