Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

Automation Scripts

Reply

Creating a Network with custom DHCP options in Ansible

Member
Posts: 1
370     0

Hi

 

I am using NIOS 8.6 and have a custom DHCP option defined. I try to create a Network with custom DHCP options in Ansible playbook. But i could not it in Network module. I was wondering who has the experience on this. 

 

Thanks,

Re: Creating a Network with custom DHCP options in Ansible

Superuser
Posts: 38
371     0

Hello,

 

I believe we can set the using the options parameter in the nios_network module.

 

Below is a snippet for that may be relevant

name: Set dhcp options for a network ipv4
infoblox.nios_modules.nios_network:
  network: 192.168.10.0/24
  comment: this is a test comment
  options:
    - name: domain-name
      value: ansible.com
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local

You can refer the given links for a better understanding of Infoblox NIOS module for Ansible
Also you can find some examples on the Ansible Docs

 
Shukran
Showing results for 
Search instead for 
Did you mean: 

Recommended for You