arista / arista.cvp / 1.1.0 / module / cv_container Manage Provisioning topology. | "added in version" 2.9 of arista.cvp" Authors: EMEA AS Team (@aristanetworks) preview | supported by communityarista.cvp.cv_container (1.1.0) — module
Install with ansible-galaxy collection install arista.cvp:==1.1.0
collections: - name: arista.cvp version: 1.1.0
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}}'
mode: choices: - merge - override - delete default: merge description: Allow to save topology or not required: false type: str 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. required: false type: list