nios_next_ip question #263
stephdcibro
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm sorry if this is stupid question, but I'm butting head against something using nios_next_ip.
We have a DHCP range in Infoblox from .11 to .249 in each subnet.
In ansible, I define a variable (see below exclude_list) that adds .1 to .10, and .250 to .255, but when running the code, I get an error that there isn't 1 ip available in that subnet. If I remove for example the .250 to .255 from my variable, it works, and gives me .251 as the first available IP.
Is this by design that the DHCP range is ignored? If so, is there another module for this?
Code snippet (omitting the provider section):
{{ lookup('infoblox.nios_modules.nios_next_ip', '{{ infoblox_ipaddress }}', 'view', filter={'name': '{{ infoblox_view }}'}, exclude=exclude_list, provider... }}
Beta Was this translation helpful? Give feedback.
All reactions