Awesome infobox module for ansible
- Python "requests" module is required
sudo pip install requests
Extensible attributes are supported in this client. It should be noted that in WAPI versions before 1.2, the field is named "extensible_attributes", whereas in version 1.2 and later, it is named "extattrs".
This gem is known to be compatible with Infoblox versions 1.0 through 2.0. While Infoblox claims that their API is backwards-compatible, one caveat remains with the Extensible Attributes (see elsewhere in this document). Some features are only available in newer versions (such as FixedAddress and AAAARecord).
- get_network [network]
- get_next_available_ip [network]
- get_host [hostname]
- add_host [hostname, network]
- delete_host [hostname]
- set_extattr [hostname, attirbule name, attribute value]
- hosts: localhost
connection: local
gather_facts: False
tasks:
- name: Add host
infoblox:
ib_server=192.168.1.1
username=admin
password=admin
action=add_host
network=192.168.1.0/24
host={{ item }}
with_items:
- test01.local
- test02.local
register: infoblox
- name: Do awesome stuff with the result
debug: msg="Get crazy!!"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request