fix(luks_ssh): ensure network module is loaded
This commit is contained in:
parent
397156a173
commit
f0d82c90d1
2 changed files with 11 additions and 0 deletions
1
roles/luks_ssh/files/90-network.conf
Normal file
1
roles/luks_ssh/files/90-network.conf
Normal file
|
@ -0,0 +1 @@
|
|||
add_dracutmodules+=" network "
|
|
@ -90,6 +90,16 @@
|
|||
become: true
|
||||
notify: Regenerate dracut
|
||||
|
||||
- name: Configure dracut to include network module for early networking
|
||||
ansible.builtin.copy:
|
||||
src: "90-network.conf"
|
||||
dest: "/etc/dracut.conf.d/90-network.conf"
|
||||
mode: "0644"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
become: true
|
||||
notify: Regenerate dracut
|
||||
|
||||
- name: Check if line is present
|
||||
ansible.builtin.shell: cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
|
||||
changed_when: false
|
||||
|
|
Loading…
Add table
Reference in a new issue