From d2680d7f5199599f227e27828b3393fe19ae4425 Mon Sep 17 00:00:00 2001 From: guisea Date: Wed, 27 Jun 2018 15:05:54 +1200 Subject: [PATCH] Management of GRUB --- tasks/grub.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tasks/grub.yml diff --git a/tasks/grub.yml b/tasks/grub.yml new file mode 100644 index 0000000..3ee8684 --- /dev/null +++ b/tasks/grub.yml @@ -0,0 +1,22 @@ +--- +- name: RHEL6 | Set boot_timeout/delay for GRUB + ini_file: + path: /boot/grub/grub.conf + section: null + option: timeout + value: "{{ common_grub_timeout }}" + state: present + when: "ansible_os_family == RedHat and ansible_distribution_major_version == 6" + tags: + - grub + +- name: RHEL7 | Set boot_timeout/delay for GRUB + ini_file: + path: /etc/default/grub + section: null + option: GRUB_TIMEOUT + value: "{{ common_grub_timeout }}" + when: "ansible_os_family == RedHat and ansible_distribution_major_version == 7" + notify: Update GRUB + tags: + - grub \ No newline at end of file