10c3d12215
- use generic media_dirs including vdr recdir, loop over them to create directories, configure samba, nfs, etc. - add role to install an configure nfs-kernel-server - cleanup roles - add custom fact modules
17 lines
383 B
Django/Jinja
17 lines
383 B
Django/Jinja
#!/bin/sh
|
|
exec tail -n +3 $0
|
|
|
|
# This file is configured by the ansible configuration for yaVDR
|
|
|
|
{% 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
|