Using ansible to create DHCP range

Posts: 1
8915     0

Hello all,


I have been trying out the new infoblox integrations with Ansilbe 2.5 and can't seem to find anything for setting up a dhcp range inside the networks I setup in infoblox with the playbook below. Am I missing something?


Example playbook follows.


- hosts: ipam-01
  connection: local
    - nios_network:
        network: "{{ }}"
        comment: "{{ item.comment }}"
           Site: YYY
         - name: domain-name
        state: present
          username: username
          password: somepass
        - { network: xx.xx.xx.xx/24, comment: 'Site - Main' }
        - { network: xx.xx.xx.xx/24, comment: 'Site - Phones' }



Re: Using ansible to create DHCP range

Community Manager
Community Manager
Posts: 356
8915     0

For Ansible 2.5, the NIOS modules includes NIOS_Network which allows you to create networks but this does not include support for DHCP ranges. The reason for this is that a range is not required for Ansible as a network alone is enough to enable it to pull next available IP address for the given subnet. If you create a network and then a Host record pulling an address from that network, it will work. A DHCP range would only be needed to support actual DHCP clients.




Re: Using ansible to create DHCP range

Posts: 2
8915     0

what if I want to configure a dhcp range for a vlan? why I just can't add another task for example to vlan provsioning. is it in the road-map?

Re: Using ansible to create DHCP range

New Member
Posts: 1
8915     0

Useful information, thanks!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You