0

I am trying to configure a bond interface using the Ansible net_linkagg module but the tasks failed with the following error.

FAILED! => {"msg": "ansible_network_os must be specified on this host to use platform agnostic modules"}

I have looked up in the module documentation but there is no value for the ansible_network_os variable that matches CentOS.

  - name: Configure Bonding Interfaces (Private Network)
    net_linkagg:
        name: bond1
        members: 
         - "{{ bond1Iface01 }}"
         - "{{ bond1Iface02 }}"
        purge: false
        state: up
        mode: active  

How can I create the bonding interface for CentOS using Ansible?

Sajirupee
  • 45
  • 1
  • 7

1 Answers1

1

Q: "How can I create the bonding interface for CentOS using Ansible?"

A: Use nmcli – Manage Networking Ansible module.


Notes

Vladimir Botka
  • 5,138
  • 8
  • 20