Example Workflows
The playbooks below are adapted from the examples/ directory shipped with the HPE Aruba Networking Central Ansible Collection. Each guide covers a single, runnable playbook: what it does, the credentials and variables it needs, and how to run it.
Source CodeThe full set of example playbooks, along with a sample
inventory.yml, is available in the collection repository underexamples/.
Proof of ConceptThese playbooks demonstrate how to combine collection modules to accomplish common tasks. They are not optimized for large-scale or production automation — review and adapt them (site names, device serials, credentials, group policies) before running them against a production Central instance.
Device Onboarding
| Workflow | Description |
|---|---|
| Onboarding New Devices into GLP and Central | Adds new devices to GLP inventory, assigns an application/subscription, then creates a site, group, and persona in Central. |
| Bulk Onboarding Devices from GLP Inventory | Dynamically selects devices already in GLP inventory, maps them to applications/subscriptions by part number, and onboards them into Central in bulk. |
Sites, Groups, and Profiles
| Workflow | Description |
|---|---|
| Creating Sites and Assigning Devices | Creates a site in Central and assigns devices to it using the Classic Central API. |
| Creating Library Configuration Profiles | Creates library VLAN, default gateway, and VRF profiles in Central. |
| Configuring Local AOS-CX Switch Profiles | Assigns a library VLAN to a site scope, configures device-local interfaces and a banner on an AOS-CX switch, and rolls the changes back. |
| Creating and Assigning Device Groups | Creates Classic Central device groups and assigns devices to them. |
GLP Device Management
| Workflow | Description |
|---|---|
| Assigning Devices to Applications and Subscriptions in GLP | Assigns devices already in GLP inventory to an application and a subscription key. |
| Querying GLP Device Inventory | Retrieves and filters device inventory data from GLP. |
Inventory and Authentication
| Workflow | Description |
|---|---|
| Building a Dynamic Inventory | Uses the central_inventory plugin to auto-discover Central devices into Ansible groups. |
| Generating a Unified Token for GLP | Generates a single OAuth token from unified credentials for use across GLP calls. |
Direct API Calls
| Workflow | Description |
|---|---|
| Central API Demo | Generates a token and calls a New Central REST endpoint directly using central_api. |
| Classic Central API Demo | Calls a Classic Central REST endpoint directly using classic_api. |
Updated 4 months ago
What’s Next
- Onboarding New Devices into GLP and Central
- Bulk Onboarding Devices from GLP Inventory
- Creating Sites and Assigning Devices
- Creating Library Configuration Profiles
- Configuring Local AOS-CX Switch Profiles
- Creating and Assigning Device Groups
- Assigning Devices to Applications and Subscriptions in GLP
- Querying GLP Device Inventory
- Building a Dynamic Inventory
- Generating a Unified Token for GLP
- Central API Demo
- Classic Central API Demo
Did this page help you?