File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11
11
- name : Notify reboot handler
12
12
ansible.builtin.debug :
13
13
msg : Old command line was {{ result.stdout }}
14
- changed_when : old_cmdline != kernel_cmdline | sort | list
14
+ changed_when : old_cmdline != kernel_cmdline | select() | sort | list
15
15
notify : " {{ kernel_restart_handler }}"
16
16
17
17
- name : Slurp /etc/default/grub
Original file line number Diff line number Diff line change 1
1
---
2
2
# Should match on all of the the cmd line parameters
3
- kernel_cmdline_regex : " {{ '(' ~ kernel_cmdline | map('regex_escape') | list | join('|') ~ ')' }}" # noqa var-naming[no-role-prefix]
3
+ kernel_cmdline_regex : " {{ '(' ~ kernel_cmdline | select() | map('regex_escape') | list | join('|') ~ ')' }}" # noqa var-naming[no-role-prefix]
4
4
5
5
kernel_cmdline_sorted : " {{ kernel_cmdline | sort }}" # noqa var-naming[no-role-prefix]
6
6
You can’t perform that action at this time.
0 commit comments