The latest cloud infrastructure announcements, technical solutions, and enterprise cloud insights.

Announcing Oracle Cloud Infrastructure Ansible Modules

Mine Tanrinian Demir
Senior Manager, Product Management

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.

Getting Started

  1. Install the Python SDK:
    pip install oci
  2. Configure the SDK with your Oracle Cloud Infrastructure credentials.
  3. Install Ansible by using Ansible Installation Guide.
  4. Clone the Ansible modules repository:
    $ git clone https://github.com/oracle/oci-ansible-modules.git
    $ cd oci-ansible-modules
  5. Install the Ansible modules by running one of the following commands:
    • If Ansible is installed as a user: $ ./install.py
    • If Ansible is installed as root: $ sudo ./install.py
  6. Write a sample playbook (e.g. list_buckets) and run it:
    $ ansible-playbook list_buckets.yml

To learn more, see the following resources:

If you need help, use the following channels:

Join the discussion

Comments ( 1 )
  • reena Wednesday, January 2, 2019

    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
    namespace_name: ' '
    compartment_id: ''
    name: 'Test'
    public_access_type: 'NoPublicAccess'
    state: 'present'
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha