yavdr-ansible/roles/grub-config/templates/50_custom.j2
2019-01-07 09:25:08 +01:00

17 lines
350 B
Django/Jinja

#!/bin/sh
{{ ansible_managed | comment }}
exec tail -n +3 $0
{% if system.shutdown is defined and system.shutdown == 'reboot' %}
menuentry "PowerOff" {
halt
}
{% endif %}
if [ "${recordfail}" = 1 ]; then
set timeout={{ 3 if grub.timeout < 3 else grub.timeout }}
else
set timeout={{ grub.timeout if grub.timeout is defined else 0 }}
fi