Commit 336cde56 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

single pipe for cron job

parent 5ca62a9c
Pipeline #39249 passed with stage
in 2 minutes and 22 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