ansible / ansible.builtin / v2.3.0.0-1 / module / aos_blueprint_virtnet Manage AOS blueprint parameter values | "added in version" 2.3 of ansible.builtin" Authors: Damien Garros (@dgarros) preview | supported by communityansible.builtin.aos_blueprint_virtnet (v2.3.0.0-1) — module
pip
Install with pip install ansible==2.3.0.0.post1
Apstra AOS Blueprint Virtual Network module let you manage your Virtual Network easily. You can create access, define and delete Virtual Network by name or by using a JSON / Yaml file. This module is idempotent and support the I(check) mode. It's using the AOS REST API.
- name: "Access Existing Virtual Network" aos_blueprint_virtnet: session: "{{ aos_session }}" blueprint: "my-blueprint-l2" name: "my-virtual-network" state: present
- name: "Delete Virtual Network with JSON File" aos_blueprint_virtnet: session: "{{ aos_session }}" blueprint: "my-blueprint-l2" content: "{{ lookup('file', 'resources/virtual-network-02.json') }}" state: absent
- name: "Create Virtual Network" aos_blueprint_virtnet: session: "{{ aos_session }}" blueprint: "my-blueprint-l2" content: "{{ lookup('file', 'resources/virtual-network-02.json') }}" state: present
name: description: - Name of Virtual Network as part of the Blueprint. state: choices: - present - absent default: present description: - Indicate what is the expected state of the Virtual Network (present or not). content: description: - Datastructure of the Virtual Network to manage. The data can be in YAML / JSON or directly a variable. It's the same datastructure that is returned on success in I(value). session: description: - An existing AOS session as obtained by M(aos_login) module. required: true blueprint: description: - Blueprint Name or Id as defined in AOS. required: true