Closed batchenr closed 3 years ago
changed playbook like this and worked:
---
- name: Playbook to demonstrate cv_container module.
hosts: cvp_servers
connection: local
gather_facts: no
collections:
- arista.cvp
- arista.avd
vars:
vars_files:
- vars.yml
tasks:
- name: "Gather CVP facts from {{inventory_hostname}}"
arista.cvp.cv_facts:
register: cv_facts
Hey with all the data here i really dont understand how to make it work. I have installed all requirements to a docker container of python:3-stretch and run inside the basic 'gather facts' playbook. I used this command also :
ansible-galaxy collection install arista.cvp
I can see error is because the cv_facts is trying to reach https://cvp_server:443/command-api and there is no such path.(command-api)I get the error:
Inventory.ini :
playbook:
Role or Module Name
arista.cvp
Ansible version
ansible 2.10.7
list of python packages if required.
Cloudvision version
OS running Ansible
Steps to reproduce
Im running from within the container this command :
ansible-playbook -vvv facts.yml -i inventory.ini
Any ideas?