Module cv_image_v3
cv_image_v3¶
EOS Image management with Cloudvision
Module added in version 3.3.0
Synopsis¶
CloudVision Portal Image management module.
Due to a current limitation in Cloudvision API, authentication with token is not supported for this module only.
Module-specific Options¶
The following options may be specified for this module:
parameter | type | required | default | choices | comments |
---|---|---|---|---|---|
action |
str | no | get |
|
Action to do with module
|
bundle_name |
str | no |
Name of the bundle to manage
|
||
image |
str | no |
Name of the image file, including path if needed
|
||
image_list |
list | no |
List of name of the image file, including path if needed
|
||
mode |
str | no | image |
|
What to manage with module
|
Examples:¶
---
- 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
Author¶
- Ansible Arista Team (@aristanetworks)
Last update:
July 22, 2022