Create OCI Infrastructure : Using Ansible

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 Credits to creator of this blog Link below

https://www.martinberger.com/2019/03/how-to-build-oci-infrastructure-environments-with-ansible/

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Create a User and SSH Keys

# groupadd oci
# useradd oci -g oci
# passwd oci

Add this line in /etc/sudoers.
oci ALL=(ALL) ALL

 

Install the Oracle Cloud Infrastructure Python SDK

$ sudo yum-config-manager --enable ol7_developer ol7_developer_epel
$ sudo yum -y install python-oci-sdk python-oci-cli   -- did this

Install the Ansible OCI Modules in one of two ways:

https://docs.ansible.com/ansible/latest/scenario_guides/guide_oracle.html

$ git clone https://github.com/oracle/oci-ansible-modules.git

/etc/ansible/modules/oci-ansible-modules






Comments

Popular posts from this blog

Oracle -OCI : Foundations

OCI -- Compute Instance Creation : VCN :Subnet