

- PIP3 INSTALL ANSIBLE UPDATE
- PIP3 INSTALL ANSIBLE UPGRADE
- PIP3 INSTALL ANSIBLE SOFTWARE
- PIP3 INSTALL ANSIBLE CODE
(p圓env-ansible) p圓env-ansible]$ cd oci-ansible-modules It makes sense to install the Ansible OCI modules in the p圓env-ansible directory which is within your home directory: Next we need to install the Ansible OCI modules, firstly we need to ensure that git is installed (sudo yum info git), if not then use yum to install it. (p圓env-ansible) ~]$ pip3 install ociįollowing on from the previous step, run the following to install Ansible: New python executable in /home/simon/p圓env-ansible/bin/python3.6Īlso creating executable in /home/simon/p圓env-ansible/bin/python From this point any package we install using pip will be placed within our virtual environment, isolated from the global python installation. The source command will active the virtual environment, this will be identified by an addition of the virtual environment name, in my example (p圓env-ansible) ~]$. The virtualenv command below will create a directory called p圓env-ansible (my choice, you can use whatever name you want for the virtual environment) and within this directory will be the python executable files along with the pip library. Now we need to install and activate the virtual environment, it is recommended to perform this from your home directory. Pip 19.2.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6) ~]$ sudo pip3.6 install -upgrade pip virtualenv virtualenvwrapper
PIP3 INSTALL ANSIBLE UPGRADE
We then need to use pip3.6 to install and upgrade pip as well as install the virtual environment: Once installed we can confirm the python version by running: To install python36 we need to run the following:

I am using the Oracle public yum and have run the updated /usr/bin/ol_yum_configure.sh script as well as enabled EPEL access (sudo yum install oracle-epel-release-el7). I want to use the latest version of python available to us for Oracle Linux 7 which at the time of writing is version 3.6.X. I am using virtualenv which is recommended as you can install the versions and modules you want without impacting other python virtualenv or global installations.įirstly lets see what version of python we are running:
PIP3 INSTALL ANSIBLE CODE
The OCI Python SDK enables us to write code to manage and provide OCI resources. I have an account within OCI and am part of the London availability domain.įor this exercise I am referring to the following OCI documentation for getting started with OCI and Ansible. The VM is up to date with the latest patches from the Oracle Public Yum channels and is subscribed to the EPEL developer channel in order to access python version 3.6, pip and virtualenv. The VM has the Oracle Virtual Box guest additions package installed and within the networking has a rule configured where I can access the VM via a terminal window using port forwarding with SSH. The OL7 VM was installed as a minimal install with the addition of developer tools.
PIP3 INSTALL ANSIBLE UPDATE
My setup at home is a laptop which is running Oracle Virtual Box which hosts a virtual machine running Oracle Linux (OL) 7 update 6.
PIP3 INSTALL ANSIBLE SOFTWARE
For further details on Ansible, please refer here in essence, Ansible is open source software providing provisioning and configuration management features. In November 2017 I published a community document on using Infrastructure as a code with Terraform to provision Oracle Linux and support infrastructure within Oracle Cloud Infrastructure (OCI) this document will discuss the same approach using Ansible. This document was created with help and input from Christophe Pauliat from the EMEA Oracle Solutions Center.
