Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Creating a Network with custom DHCP options in Ansible
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2023 03:20 AM
1853     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,
Solved! Go to Solution.
Labels:
Re: Creating a Network with custom DHCP options in Ansible
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 09:09 AM
1854     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