delete old grub role

This commit is contained in:
Alexander Grothe 2017-02-23 13:15:32 +01:00
parent 228ac70b5e
commit bf6b434fce
4 changed files with 0 additions and 43 deletions

View File

@ -1,4 +0,0 @@
system:
shutdown: reboot
grub:
timeout: 0

View File

@ -1,7 +0,0 @@
- name: Update GRUB
command: update-grub
failed_when: ('error' in grub_register_update.stderr)
register: grub_register_update
# TODO: Do we need to use grub-set-default?
# https://github.com/yavdr/yavdr-utils/blob/master/events/actions/update-grub

View File

@ -1,15 +0,0 @@
- name: custom grub configuration for timeout and reboot halt
template:
src: templates/50_custom.j2
dest: /etc/grub.d/50_custom
mode: '0775'
notify: [ 'Update GRUB' ]
- name: let the system boot quietly
lineinfile:
dest: /etc/default/grub
state: present
regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT=")'
line: '\1quiet nosplash"'
backrefs: yes
notify: [ 'Update GRUB' ]

View File

@ -1,17 +0,0 @@
#!/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 system.grub.timeout < 3 else system.grub.timeout }}
else
set timeout={{ system.grub.timeout if system.grub.timeout is defined else 0 }}
fi