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
.
- Set the
log_requests
variable in your ~/.oci/config toTrue
to enable Request logging in the OCI python SDK - Export an environment variable named
LOG_LEVEL
with the valueDEBUG
to enable DEBUG mode for the OCI Ansible modules
$ export LOG_LEVEL="DEBUG"
All subsequent debug messages from an Ansible playbook execution using the OCI Ansible Cloud Modules
would go to /tmp/oci_ansible_module.log
(the default logging location for the OCI Ansible modules).
OCI Ansible Cloud Modules uses standard Python logging facilities for logging.
Use the environment variable LOG_PATH
to change the directory where the log file should be placed and LOG_LEVEL
to change the log level.
The default log level is INFO
.