Open lucasaugustomcc opened 10 months ago
hey @lucasaugustomcc some recommendations:
try to simulate the issue with a virtual enviroment
Add pythn interpreter path to vars in playbooks
vars:
ansible_python_interpreter: /usr/bin/python3
you can try with python3.10 that ansible --version shows is using (in case you python 3 version is another parallel python version you have)
Double check that python3 version has the oci installed: `/usr/bin/python3 -m pip
show oci and
/usr/bin/python3 -m install show oci ` # in case is not
Issue Report
Describe the issue
Even though the SDK is already installed I'm still getting an error message. I've followed the instructions from the Troubleshooting guide but it does not work for me.
Error message:
[I am not able to run a](fatal: [chat-52]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "changed": false, "msg": "oci python sdk required for this module.", "troubleshooting_tips": "Refer to troubleshooting guide https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest/guides/troubleshooting-guide.html"})
Expected behavior
Identify oci python sdk already installed and run playbook.
Environment
OS version: Ubuntu 22.04
Ansible version: core 2.16.2
OCI Python SDK version: 2.119.1
OCI Ansible Modules version: 4.40.0
Ansible playbook to reproduce the issue