pip install aruba.aoscx
- name: Configure AOS-CX Device
hosts: aos-cx-switches
gather_facts: no
connection: network_cli
tasks:
- name: Create VLAN on AOS-CX Switch
aos_cx_vlan:
name: "vlan100"
vlan_id: 100
state: present
通过执行以上步骤,我们可以成功运行Ansible与Aruba AOS-CX设备进行交互,使用模块来完成相关任务。