Oracle provides a number of Ansible modules to interact with Oracle Cloud Infrastructure (OCI). In this guide, we will explain how you can use these modules to orchestrate, provision and configure your infrastructure on OCI.
To use the OCI Ansible modules, you must have the following prerequisites on your control node, the computer from which Ansible playbooks are executed.
pip install oci
ansible-galaxy install oracle.oci_ansible_modules
$ git clone https://github.com/oracle/oci-ansible-modules.git
$ cd oci-ansible-modules
Run one of the following commands:
$ sudo ./install.py
When creating and configuring Oracle Cloud Infrastructure resources, Ansible modules use the authentication information outlined here. .
This sample launch playbook launches a public Compute instance and then accesses the instance from an Ansible module over an SSH connection. The sample illustrates how to:
This sample warehouse playbook creates an Autonomous Data Warehouse and manage its lifecycle. The sample shows how to:
This sample playbook creates an Autonomous Transaction Processing database and manage its lifecycle. The sample shows how to:
You can find more examples here: Sample Ansible Playbooks.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.