Skip to content

cv_task_v3

cv_task_v3

Execute or Cancel CVP Tasks.

Module added in version 3.0.0

Synopsis

CloudVision Portal Task module to action pending tasks on CloudVision

Module-specific Options

The following options may be specified for this module:

parameter type required default choices comments
tasks list True CVP taskIDs to act on
state str False executed
  • executed
  • cancelled
Action to carry out on the task.

Examples

---
- name: Execute all tasks registered in cvp_configlets variable
  arista.cvp.cv_task_v3:
    tasks: "{{ cvp_configlets.taskIds }}"

- name: Cancel a list of pending tasks
  arista.cvp.cv_task_v3:
    tasks: ['666', '667']
    state: cancelled

For a complete list of examples, check them out on our GitHub repository.

Module output

Example output
msg:
  actions_manager:
    actions_manager_count: 2
    actions_manager_list:
    - task_747
    - task_748
    changed: true
    diff: {}
    success: true
    taskIds: []
  changed: true
  failed: false
  success: true
  taskIds: []

Author

Ansible Arista Team (@aristanetworks)


Last update: November 21, 2023