We are happy to announce that Oracle Cloud Infrastructure Ansible modules are now available!
As more customers deploy applications to Oracle Cloud Infrastructure, we are observing an increased need for DevOps capabilities to automate these operations. Ansible addresses this need by allowing you to provision and configure your resources using automation. The new Oracle Cloud Infrastructure Ansible modules provide the capabilities to provision and configure your Oracle Cloud Infrastructure resources with the current release supporting all core services (more services will be covered in future releases). Also, Ansible contains a toolbox of built-in modules that you can use together with Oracle Cloud Infrastructure Ansible modules to meet your end-to-end needs.
Ansible doesn't require setting up complex agents, customized security, or centralized configuration servers. All you need to do is describe your automation jobs. To provision and configure Oracle Cloud Infrastructure resources, you just declare your desired state by using Ansible playbooks. When these playbooks are executed by Ansible, your Oracle Cloud Infrastructure resources are provisioned and configured according to your requirements.
Oracle Cloud Infrastructure Ansible modules are located in the oci-ansible-modules GitHub repo, and you can refer to the documentation for a list of supported modules. We would like your feedback on these modules and any future improvements; tell us what you think on the oci-ansible-modules GitHub issues page.
pip install oci
$ git clone https://github.com/oracle/oci-ansible-modules.git
$ cd oci-ansible-modules
$ ./install.py
$ sudo ./install.py
$ ansible-playbook list_buckets.yml
To learn more, see the following resources:
If you need help, use the following channels:
I am trying to use ansible for oci. However I am getting error as "oci python sdk required for this module". I have installed obi-ansible-modules and oci-python-sdk.
Here is the code:-
name: Create or Update bucket
oci_bucket:
namespace_name: ' '
compartment_id: ''
name: 'Test'
public_access_type: 'NoPublicAccess'
state: 'present'
Thanks.