infoblox-ansible
infoblox-ansible copied to clipboard
clean warnings [WARNING]: Both option ipaddr and its alias ipaddr are set.
Using this task:
- name: configure ipv4 dhcp fixed address based on existing lease
nios_fixed_address:
name: "{{ilo}}"
ipaddr: "{{ lease.address }}"
mac: "{{ lease.hardware }}"
network: "{{lease.network }}"
network_view: "{{lease.network_view}}"
comment: iLO for {{ inventory_hostname }}
state: present
provider: "{{ nios_provider }}"
extattrs:
Project: myproject
Editor: "{{nios_provider.username }}"
delegate_to: localhost
the task seems to run successfully, but 4 warnings are logged (reproduced here)
[WARNING]: Both option ipaddr and its alias ipaddr are set.
[WARNING]: Both option mac and its alias mac are set.
[WARNING]: Both option network and its alias network are set.
[WARNING]: Both option network_view and its alias network_view are set.
I don't think I am providing these options twice. Is it possible to remove this warning, or can the warning indicate more clearly what is wrong?
Thanks
I was not able to reproduce this using version 1.0.2 of the module (latest as we speak). I see this bug was open quite a while ago. Have you tried more recently?
@JchhatbarInfoblox @JkhatriInfobox -- I believe this is a stale bug.