ho-ansible / ansible

Playbooks and config for remote administration
1 stars 0 forks source link

systemd-networkd: fallback to dhcpcd on old kernel #77

Closed seanho00 closed 6 years ago

seanho00 commented 7 years ago

The bug with systemd-networkd's built-in dhcp client #54 isn't really a problem with OpenVZ, but with the ancient kernel. Using an old kernel on a KVM (e.g., tiny 64MB RAM, recent Debian kernel/initramfs is too big) presents the same problem.

So the decision of whether to use dhcpcd5 instead of systemd dhcp client should be based on parsing ansible_kernel rather than ansible_virtualization_type.