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?