Commit 32ccd0b7 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add option to turn off needs restarting and reboot (for ita managed instances)

parent 3ff6a16e
......@@ -11,6 +11,7 @@ cron_email: false
cron_users:
- root
- "{{ worker_name }}"
cron_yum_update_needs_restarting: true
cron_mailto:
- "oyvind.gjesdal@uib.no"
ssh_public_keys: []
......
......@@ -17,6 +17,7 @@
user: "root"
job: '/usr/bin/sh -c "yum update -y && /usr/bin/needs-restarting -r now || /usr/sbin/shutdown -r" > /dev/null'
become: true
when: "cron_yum_update_needs_restarting | default(true) | bool"
- name: Set authorized key from url
authorized_key:
......
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