This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
getting 'Exception: IP address for the Host record is missing.' when using Ansible to add host #35
Comments
@jnc-cnj can you elaborate on what you changed in the infoblox.py ? |
@davisionz
added it to the list
Then change the following in 'create_host_record` to:
HTH. |
many thanks! |
Hi guys! Could you open a Pull Request with the needed changes to solve the problem? Thanks! |
@xoanmi |
I am still getting this error with this playbook tasks:
- name: add host
infoblox:
server: xxxx
username: xxxx
password:xxxx
action: add_host
api_version: 2.1
host: "sn1-rsw-a02-40"
dns_view: INTERNAL
address: 172.16.0.150
register: result With the newest code. Anyone have any ideas how to resovle this? |
this is the current error i am getting:
|
figured it out. The OPs code changed did in fact do the trick the rest were mental errors on my part |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I am testing Ansible module and I am able to get host. However, when adding a host, it failed. Here's what I have:
Playbook:
error:
debug output:
I think what happened is:
This is the infoblox API:
This is the code in infoblox.py module.
Seems the model wasn't built correctly. It builds a record like this: "ipv4addr": [{"ipv4adr": "x.x.x.x"}].
I modified the infoblox.py file and it's working for me now. However, I think this might affect other functions as well. Since I have very limited knowledge of coding, I am open this issue to let professional to take a look and fix it.
The text was updated successfully, but these errors were encountered: