Please refer the Installation Guide on different ways to install the OCI Ansible Collection.
ansible-galaxy collection install -f oracle.oci
The below command lists all the collections installed in your system and their versions. You can check the version for the entry oracle.oci
ansible-galaxy collection list
Note: You need ansible >= 2.10 to run the above command
You can run the below command:
python -c 'import oci; print(oci.__version__)'
You need ansible >= 2.9
and the latest version of oci
.
Please refer to Logging In OCI Ansible Module