- name: configure 2nd network interface hosts: servers become: true vars: target_mac: "52:54:00:01:fa:0a" network_connections: - name: static type: ethernet mac: "{{ target_mac }}" state: up ip: dhcp4: no address: - 192.168.0.1/24 roles: - rhel-system-roles.network