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