Skip to content

Commit

Permalink
Merge pull request #27 from stackhpc/grub-cmdline-fix-update
Browse files Browse the repository at this point in the history
Update GRUB command line only if parameters change
  • Loading branch information
markgoddard authored Mar 26, 2024
2 parents bd295cf + d338c41 commit 8a81227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/grubcmdline/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
line: GRUB_CMDLINE_LINUX_DEFAULT="{{ grub_cmdline_linux_new | join(' ') }}"
backup: "{{ backup_grub_config_file }}"
become: true
when: grub_cmdline_linux_default.split() | sort | list != grub_cmdline_linux_new | sort | list

- name: Generate new grub-config (RedHat <= 8.x)
ansible.builtin.command: grub2-mkconfig
Expand Down

0 comments on commit 8a81227

Please sign in to comment.