Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

Automation Scripts

Reply

Creating a Network with custom DHCP options in Ansible

New Member
Posts: 1
1422     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
1423     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