From 4eda762d23fa108d2642362da9a7e60cd8cfb803 Mon Sep 17 00:00:00 2001 From: guisea Date: Wed, 27 Jun 2018 16:04:39 +1200 Subject: [PATCH] Fixed conditionals --- tasks/grub.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/grub.yml b/tasks/grub.yml index 3ee8684..b142635 100644 --- a/tasks/grub.yml +++ b/tasks/grub.yml @@ -6,7 +6,7 @@ option: timeout value: "{{ common_grub_timeout }}" state: present - when: "ansible_os_family == RedHat and ansible_distribution_major_version == 6" + when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version == '6'" tags: - grub @@ -16,7 +16,7 @@ section: null option: GRUB_TIMEOUT value: "{{ common_grub_timeout }}" - when: "ansible_os_family == RedHat and ansible_distribution_major_version == 7" + when: "ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'" notify: Update GRUB tags: - grub \ No newline at end of file