Add handler to rebuild initrd if config changed

This commit is contained in:
2020-12-09 21:48:20 +01:00
parent 3c86f1e312
commit 0b0549975c

View File

@@ -183,6 +183,8 @@
regexp: '^#?COMPRESSION=.*$'
line: 'COMPRESSION="lz4"'
become: true
notify:
- rebuild initrd
when: distro == 'archlinux'
- set_fact:
@@ -357,3 +359,8 @@
loop_var: user
tags:
- always
handlers:
- name: rebuild initrd
command: mkinitcpio -P
become: true