arista-netdevops-community / ansible-cvp-avd-toi

A repository with lab content to run TOI for ansible, AVD and Cloudvision collections
https://www.avd.sh
Apache License 2.0
12 stars 13 forks source link

changing default interpreter to python3 to fix issues where ansible c… #6

Closed noredistribution closed 2 years ago

noredistribution commented 2 years ago

…annot use the plugins when leaving the default python interpreter to $(which python) ansible can choose python2 in which case playbooks can fail with something like:

fatal: [CloudVision]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: 1: /home/coder/.ansible/tmp/ansible-local-816_i7okg4s/ansible-tmp-1642445832.554339-822-12994943389065/AnsiballZ_cv_configlet_v3.py: not found\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127}

changing it to $(which python3) fixes this