-
Hi, Used Ansible for years but new to containers.podman. At work, we use Artifactory for our image repos and I have proven on a RHEL 7.9 host the following:
However, when I use the containers.podman collection to mirror the steps the following step fails with syntax error occurring in one of the underlying Python code files. Does the collection have a dependency not mention in the docs?
Syntax Error
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
python2.7 ? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. However, on checking the RHEL 7.9 host and the ansible.cfg its showing as using
|
Beta Was this translation helpful? Give feedback.
-
You need to check the host where actual podman is running - |
Beta Was this translation helpful? Give feedback.
-
Sorted thank you for the assistance.
|
Beta Was this translation helpful? Give feedback.
You need to check the host where actual podman is running -
lnx01
, not the controller host.To be sure Ansible uses the Python 3, you can add
-e ansible_python_interpreter=/usr/bin/python3
to the Ansible command line