# Configuration réseau générée par Ansible # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # Inclure les configurations d'autres interfaces, si présentes source /etc/network/interfaces.d/* # Interface de bouclage (loopback) auto lo iface lo inet loopback {% for iface in network_interfaces %} auto {{ iface.name }} iface {{ iface.name }} inet static address {{ iface.ip_address }} netmask {{ iface.netmask }} gateway {{ iface.gateway }} {% endfor %} [ansible@srv-ansible projet1]$