michaelrigart / ansible-role-interfaces

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

template ethernet_RedHat.j2 : bootproto set at none instead of static #110

Closed dginhoux closed 2 years ago

dginhoux commented 3 years ago

Hi,

I've just found an error on the template ethernet_RedHat.j2 of the current version 1.11.1 and on the master branch. At line 9, bootproto must be set at static and not none.

must be :

...
{% if item.bootproto == 'static' %}
BOOTPROTO=static
...
guegrer commented 3 years ago

got the same trouble... with redhat

dginhoux commented 3 years ago

I made a mistake, none and static are quite equivalent after reading the RHEL documentation. The better way is : https://access.redhat.com/solutions/8627

It's not BOOTPROTO directive problem, this solution put NOZEROCONF=yes in the /etc/sysconfig/network. It can be added on each interface too and it work fine.