Skip to content

Commit

Permalink
Fix Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrosi committed Dec 7, 2023
1 parent a9ef5b3 commit bfe653f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
{{ __bootloader_default_grub }}
cat {{ __bootloader_default_grub }}
changed_when: true
when:
- ansible_distribution in ['CentOS', 'RedHat']
- ansible_facts.distribution_major_version is version('7', '=')
when: >-
(ansible_distribution in ['CentOS', 'RedHat'] and
ansible_facts.distribution_major_version is version('7', '=')) or
ansible_distribution == 'Fedora'
- name: Rebuild grub config
command: grub2-mkconfig -o {{ __bootloader_grub_conf }}
Expand Down
3 changes: 3 additions & 0 deletions tests/tests_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
include_role:
name: linux-system-roles.bootloader

- name: Flush handlers
meta: flush_handlers

- name: Verify that default bootloader is correct in bootloader_gather_facts
vars:
default_bootloader: "{{
Expand Down

0 comments on commit bfe653f

Please sign in to comment.