fix(luks_ssh): ensure network module is loaded

This commit is contained in:
Saibotk 2024-08-14 00:52:46 +02:00
parent 397156a173
commit f0d82c90d1
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1 @@
add_dracutmodules+=" network "

View file

@ -90,6 +90,16 @@
become: true become: true
notify: Regenerate dracut 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 - name: Check if line is present
ansible.builtin.shell: cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT ansible.builtin.shell: cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
changed_when: false changed_when: false