AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

Using the AAP 2.6 Self-Service Portal for Network Automation

By Luca Berton · Published 2024-01-01 · Category: troubleshooting

How network teams can use the AAP 2.6 self-service portal to run pre-approved network automation without Ansible experience.

Using the AAP 2.6 Self-Service Portal for Network Automation

Introduction

Network engineers often need to run routine automation tasks but may not be Ansible experts. The AAP 2.6 self-service portal bridges this gap by providing a guided, point-and-click interface for running pre-approved network automations.

See also: AAP 2.6 Network Automation: Cisco, Arista, Juniper, and Multi-Vendor Management

Setting Up Network Automation in the Portal

Step 1: Build Network Job Templates

Create job templates for common network tasks:

# VLAN Configuration Template
- name: Configure VLAN
  hosts: "{{ target_switches }}"
  collections:
    - cisco.ios
  tasks:
    - name: Create VLAN
      cisco.ios.ios_vlans:
        config:
          - vlan_id: "{{ vlan_id }}"
            name: "{{ vlan_name }}"
            state: active

Step 2: Add Survey Variables

Configure survey variables that become form fields in the portal:

survey_spec:
  name: "VLAN Configuration"
  description: "Create or modify a VLAN on network switches"
  spec:
    - question_name: "VLAN ID"
      variable: "vlan_id"
      type: "integer"
      required: true
      min: 2
      max: 4094

- question_name: "VLAN Name" variable: "vlan_name" type: "text" required: true

- question_name: "Target Switches" variable: "target_switches" type: "multiplechoice" choices: - "dc1_access_switches" - "dc2_access_switches" - "all_access_switches"

Step 3: Publish to Portal

In the AAP 2.6 UI: Navigate to the self-service portal settings Select the network automation job templates Assign the "Network Engineering" team Set appropriate permissions

Common Network Portal Use Cases

1. VLAN Management

• Create new VLANs • Modify VLAN assignments • Decommission VLANs

2. ACL Updates

• Add firewall rules • Modify access lists • Emergency port blocking

3. Device Backup

• On-demand configuration backups • Scheduled backup verification • Configuration comparison

4. Interface Management

• Enable/disable interfaces • Update interface descriptions • Change speed/duplex settings

5. Troubleshooting

• Run show commands across devices • Collect diagnostic information • Generate health reports

See also: Setting Up the Self-Service Automation Portal in AAP 2.6

Benefits for Network Teams

No Ansible learning curve — Network engineers use familiar terms in a form • Pre-approved changes — All automations are vetted by the platform team • Audit trail — Every action is logged with who, what, and when • Faster execution — No more ticket queues for routine changes • Reduced errors — Guided forms prevent common mistakes

Conclusion

The self-service portal transforms how network teams interact with automation. By providing a simple, guided interface, you can scale network automation to every network engineer in your organization without requiring Ansible expertise.

For more Ansible tutorials and guides, explore the complete article collection on Ansible Pilot.

See also: Ansible Network Automation: Configure Cisco, Arista, and Juniper at Scale

Related Articles

Ansible template guidebecome_user and become_method in Ansible

See also

Ansible Cisco UCS Automation: Manage UCS Manager Server Profiles, VLANs, and Policies

Category: troubleshooting

Browse all Ansible tutorials · AnsiblePilot Home