Skip to content

Commit

Permalink
Merge pull request #218 from shiftstack/fix-consistent-nic
Browse files Browse the repository at this point in the history
prepare_host: fix inconsistent nic naming on RHEL 9
  • Loading branch information
mandre authored Oct 4, 2023
2 parents cd9c6b0 + 24e17d2 commit 90982f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/prepare_host.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- name: Make sure persistent NIC names is not disabled # noqa no-changed-when
ansible.builtin.shell: |
if grep -q net.ifnames=0 /etc/default/grub; then
sed -i 's/net.ifnames=0 //g' /etc/default/grub
sed -i 's/net.ifnames=0//g' /etc/default/grub
for f in grub2 grub2-efi; do
grub2-mkconfig -o $(readlink -f /etc/$f.cfg)
done
Expand Down

0 comments on commit 90982f6

Please sign in to comment.