-
I've been trying to figure this out for a while and hope someone can point me in the right direction. I've written a playbook that will "interview" a machine and put its information in to Netbox and I'm hung up when it goes to add and assign the IP address to an interface. Most of our IP addresses are already in Netbox (not assigned to devices) so when the netbox.netbox_ip_address module runs it errors out with the message "Duplicate IP address found in global table: x.x.x.x/xx". Makes sense, the address was in there but I want Ansible to ignore that and just add x.x.x.x/xx to an interface. Any ideas?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't believe the logic around |
Beta Was this translation helpful? Give feedback.
I don't believe the logic around
assigned_object
is complex enough to handle the update of an existing IP address, to associate it with a device. I am a little fuzzy but I seem to recall encountering this and having to delete IP addresses, then re-create them usingnetbox_ip_address
module with theassigned_object
correctly set