Add handler to rebuild initrd if config changed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user