arista / arista.cvp / 3.10.1 / module / cv_container
Removed in 4.0.0
Reason:Updated modules released with increased functionality | Alternative:Use M(arista.cvp.cv_container_v3) instead.
Manage Provisioning topology.
| "added in version" 1.0.0 of arista.cvp"
Authors: Ansible Arista Team (@aristanetworks)
Install with ansible-galaxy collection install arista.cvp:==3.10.1
collections: - name: arista.cvp version: 3.10.1
CloudVision Portal Configlet configuration requires a dictionary of containers with their parent, to create and delete containers on CVP side.
Returns number of created and/or deleted containers
- name: Create container topology on CVP hosts: cvp connection: local gather_facts: no vars: verbose: False containers: Fabric: parent_container: Tenant Spines: parent_container: Fabric configlets: - container_configlet images: - 4.22.0F devices: - veos01 tasks: - name: "Gather CVP facts {{inventory_hostname}}" cv_facts: register: cvp_facts - name: "Build Container topology on {{inventory_hostname}}" cv_container: cvp_facts: "{{cvp_facts.ansible_facts}}" topology: "{{containers}}" mode: merge register: CVP_CONTAINERS_RESULT
mode: choices: - merge - override - delete default: merge description: Allow to save topology or not. required: false type: str options: description: Implements the ability to create a sub-argument_spec, where the sub options of the top level argument are also validated using the attributes discussed in this section. required: false type: dict topology: description: Yaml dictionary to describe intended containers. required: true type: dict cvp_facts: description: Facts from CVP collected by cv_facts module. required: true type: dict configlet_filter: default: - none description: Filter to apply intended set of configlet on containers. If not used, then module only uses ADD mode. configlet_filter list configlets that can be modified or deleted based on configlets entries. elements: str required: false type: list