-
Notifications
You must be signed in to change notification settings - Fork 25
ArubaOS Switch Task Configuration Example
tchiapuziowong edited this page May 20, 2019
·
1 revision
This Workflow is an example of using Ansible Task Lists to Automate configuration for ArubaOS-Switch. It will execute a list of tasks for each Switch in the defined inventory.
Each Task in the Playbook allows you to configure the Switch. All used tasks can be found under "./aruba_task_lists/aos_switch".
Using task list files found in aruba_task_lists/aos_switch, Ansible will do the following using REST API:
- Login to the switch
- Configure VLAN 233
- Execute
show vlans
- Verify VLAN 233 in
show vlans
- Set DNS server
- Create SNMP community Test123 with manager access
- Set SNMP server hosts with community Test123
- Enable Jumbo on VLAN 233
- Configure Spanning Tree Globally
- Configure Spanning Tree for interface 5
- Logout of the switch
Set up your inventory as described in Project Inventory Set Up
ArubaOS-Switch:
switch(config)# web-management
switch(config)# web-management ssl
switch(config)# rest-interface
- Run via: "ansible-playbook arubaoss_tasks_config_example.yml -e site=branch1" (Assuming current directory is "aruba-switch-ansible" and all pre-configurations have taken place)