Reply
Highlighted

infoblox ansible module update_host_record error

[ Edited ]
yangjef2
Techie
Posts: 3
1337     0

I wrote this play:

- name: "Update host"
infoblox:
server: #######
username: yangjef2
password: ##########
dns_view: test-internal
action: update_host_record
current:172.22.210.43
host: ansible-test.internal.com
address: #######
register: result

 

i'm getting the following error:

 

The full traceback is:
File "/var/folders/s3/6yq90n310_92ls_253mjpqj94cvtx4/T/ansible_Jief6H/ansible_modlib.zip/ansible/module_utils/basic.py", line 2002, in _check_argument_types
param[k] = type_checker(value)
File "/var/folders/s3/6yq90n310_92ls_253mjpqj94cvtx4/T/ansible_Jief6H/ansible_modlib.zip/ansible/module_utils/basic.py", line 1853, in _check_type_dict
raise TypeError("dictionary requested, could not parse JSON or key=value")

fatal: [localhost]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"action": "update_host_record",
"address": "#######",
"api_version": "1.7.1",
"comment": "Object managed by ansible-infoblox module",
"current": "172.22.210.43",
"dns_view": "test-internal",
"host": "ansible-test.internal.com",
"net_view": "default",
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"roundrobin": false,
"server": "#########",
"username": "yangjef2"
}
},
"msg": "argument current is of type <type 'str'> and we were unable to convert to dict: dictionary requested, could not parse JSON or key=value"
}

 

if anyone has any suggestions on what's going wrong that'd be greatly appreciated

Showing results for 
Search instead for 
Do you mean 

Recommended for You