HomeGuidesAPI ReferenceGuidesMRT APIConfiguration API
GitHubAirheads Developer Community
Guides

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 Code

The full set of example playbooks, along with a sample inventory.yml, is available in the collection repository under examples/.

🚧

Proof of Concept

These 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

WorkflowDescription
Onboarding New Devices into GLP and CentralAdds new devices to GLP inventory, assigns an application/subscription, then creates a site, group, and persona in Central.
Bulk Onboarding Devices from GLP InventoryDynamically 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

WorkflowDescription
Creating Sites and Assigning DevicesCreates a site in Central and assigns devices to it using the Classic Central API.
Creating Library Configuration ProfilesCreates library VLAN, default gateway, and VRF profiles in Central.
Configuring Local AOS-CX Switch ProfilesAssigns 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 GroupsCreates Classic Central device groups and assigns devices to them.

GLP Device Management

WorkflowDescription
Assigning Devices to Applications and Subscriptions in GLPAssigns devices already in GLP inventory to an application and a subscription key.
Querying GLP Device InventoryRetrieves and filters device inventory data from GLP.

Inventory and Authentication

WorkflowDescription
Building a Dynamic InventoryUses the central_inventory plugin to auto-discover Central devices into Ansible groups.
Generating a Unified Token for GLPGenerates a single OAuth token from unified credentials for use across GLP calls.

Direct API Calls

WorkflowDescription
Central API DemoGenerates a token and calls a New Central REST endpoint directly using central_api.
Classic Central API DemoCalls a Classic Central REST endpoint directly using classic_api.

Did this page help you?