ansible / ansible.builtin / v2.6.0 / module / _aos_blueprint_virtnet
Removed in 2.9
Reason:This module does not support AOS 2.1 or later | Alternative:See new modules at U(https://www.ansible.com/ansible-apstra).
Manage AOS blueprint parameter values
| "added in version" 2.3 of ansible.builtin"
Authors: Damien Garros (@dgarros)
deprecated | supported by community
pip
Install with pip install ansible==2.6.0
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