playbook.yml 703 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. - name: Configure team network device
  3. hosts: servers
  4. become: true
  5. vars:
  6. network_connections:
  7. - name: team1
  8. state: up
  9. type: team
  10. interface_name: team1
  11. ip:
  12. dhcp4: no
  13. auto6: no
  14. address: 10.1.1.10/24
  15. -
  16. - name: team1-port1
  17. state: up
  18. type: ethernet
  19. interface_name: eth1
  20. master: team1
  21. - name: team1-port2
  22. state: up
  23. type: ethernet
  24. interface_name: eth2
  25. master: team1
  26. roles:
  27. - rhel-system-role
  28. tasks:
  29. - name: Tune team runner to activebackup
  30. command: nmcli con nmcli con
  31. - name: Reboot the server
  32. reboot: