confignet.yml 361 B

12345678910111213141516171819
  1. - name: configure 2nd network interface
  2. hosts: servers
  3. become: true
  4. vars:
  5. target_mac: "52:54:00:01:fa:0a"
  6. network_connections:
  7. - name: static
  8. type: ethernet
  9. mac: "{{ target_mac }}"
  10. state: up
  11. ip:
  12. dhcp4: no
  13. address:
  14. - 192.168.0.1/24
  15. roles:
  16. - rhel-system-roles.network