Ansible for Infoblox

Gini Gini Follow · 2 mins read
Ansible for Infoblox
Share this

Configure Ansible for Infoblox

Install Python3 on RHEL

$ su -
# subscription-manager repos --enable rhel-7-server-optional-rpms \
  --enable rhel-server-rhscl-7-rpms
# yum -y install @development
# yum -y install rh-python36
# yum -y install rh-python36-numpy \
 rh-python36-scipy \ 
 rh-python36-python-tools \

Instal Python3 on Centos

# yum install -y python3

Setup Python VirtualEnv (venv)

$ scl enable rh-python36 bash
$ python3 -V
Python 3.6.3
$ python -V  # python now also points to Python3 
Python 3.6.3
$ mkdir ~/pydev
$ cd ~/pydev
$ python3 -m venv py36-venv
$ source py36-venv/bin/activate
(py36-venv) $ python3 -m pip install ...some modules...

DONOT Upgrade pip to Latest !!!

$ python -m pip install pip==20.2.3

Install Ansible

## install required packages
pip install wheel setuptools rust etc

pip install ansible

Install infoblox Client

pip install infoblox-client

Infoblox API References

Find the WAPI documentation from https://<GRID_IP_ADDRESS>/wapidoc/ url.

## list WAPI versions

## samples

## get the rpz url entry

Sample API Calls

$ curl -k -s \
  -H 'content-type: application/json' \
  -X POST \
  --user admin:adminadmin \
  ",rp_zone&_return_as_object=1" \
  -d '{"name":"","ipv4addr":"","rp_zone":"category-01"}'



Written by Gini Follow
Backpacker, Foodie, Techie

Latest Stories