arista.cvp.cv_image_v3 (3.10.1) — module

EOS Image management with CloudVision

| "added in version" 3.3.0 of arista.cvp"

Authors: Ansible Arista Team (@aristanetworks)

Install collection

Install with ansible-galaxy collection install arista.cvp:==3.10.1


Add to requirements.yml

  collections:
    - name: arista.cvp
      version: 3.10.1

Description

CloudVision Portal Image management module.

Due to a current limitation in CloudVision API,

authentication with token is not supported for this module only.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: CVP Image Tests
  hosts: cv_server
  gather_facts: no
  vars:
  tasks:
    - name: "Gather CVP image information facts {{inventory_hostname}}"
      arista.cvp.cv_image_v3:
         mode: image
         action: get
      register: image_data

    - name: "Print out facts from {{inventory_hostname}}"
      debug:
        msg: "{{image_data}}"


    - name: "Get CVP image image bundles {{inventory_hostname}}"
      arista.cvp.cv_image_v3:
        mode: bundle
        action: get
      register: image_bundle_data

    - name: "Print out images from {{inventory_hostname}}"
      debug:
        msg: "{{image_bundle_data}}"


    - name: "Update an image bundle {{inventory_hostname}}"
      vars:
        ansible_command_timeout: 1200
        ansible_connect_timeout: 600
      arista.cvp.cv_image_v3:
        mode: bundle
        action: add
        bundle_name: Test_bundle
        image_list:
           - TerminAttr-1.16.4-1.swix
           - EOS-4.25.4M.swi

Inputs

    
mode:
    choices:
    - bundle
    - image
    default: image
    description: What to manage with the module.
    required: false
    type: str

image:
    description: Name of the image file, including path if needed.
    required: false
    type: str

action:
    choices:
    - get
    - add
    - remove
    default: get
    description: Action to perform with the module.
    required: false
    type: str

image_list:
    description: List of name of the image file, including path if needed.
    elements: str
    required: false
    type: list

bundle_name:
    description: Name of the bundle to manage.
    required: false
    type: str