arista.cvp.cv_task_v3 (3.10.1) — module

Execute or Cancel CVP Tasks.

| "added in version" 3.0.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 Task module to action pending tasks on CloudVision

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Execute all tasks registered in cvp_configlets variable
  arista.cvp.cv_task_v3:
    tasks: "{{ cvp_configlets.taskIds }}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Cancel a list of pending tasks
  arista.cvp.cv_task_v3:
    tasks: ['666', '667']
    state: cancelled

Inputs

    
state:
    choices:
    - executed
    - cancelled
    default: executed
    description: Action to carry out on the task.
    required: false
    type: str

tasks:
    description: CVP taskIDs to act on
    elements: str
    required: true
    type: list