michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

Fix persistent network configuration on RHEL/CentOS 8 #69

Closed markgoddard closed 4 years ago

markgoddard commented 4 years ago

On RHEL/CentOS 8, this role now installs the network-scripts RPM. This RPM provides the legacy ifup / ifdown implementations that can bypass NetworkManager. It also provides a network init.d script. However, this script is not enabled by default.

Since we use NM_CONTROLLED=no, this means that a role invocation will work fine, until the next reboot or until the DHCP lease expires (when using DHCP), whichever comes first.

This change fixes the issue by enabling network.service.

Fixes: #68

markgoddard commented 4 years ago

Thanks

markgoddard commented 4 years ago

I'll make a release including this.