Reply
Highlighted

Question about Ansible infoblox.py & Changing CNAME

[ Edited ]
j5infoblox
Techie
Posts: 1
1662     0

Hello, I currently have the following in Ansible, where I'm trying to change the existing CNAME of ansible.xyz to point to the A record of ansibletest002.xyz.  It's currently pointing to the A record of ansibletest001.xyz, but again I'm trying to change it so that it points to ansibletest002.xyz.

 

- name: Update internal CNAME record
  infoblox:
    server=10.1.1.1
    username=joebob
    password=joebob
    action=update_cname_record
    dns_view=Internal
    cname=ansible.xyz
    canonical=ansibletest002.xyz
  register: infoblox_result

However, when I run Ansible I keep getting the following error (in verbose mode)

    }, 

"msg": "The 'current' check is not a dict"
}

So when I add the current parameter in it as such,

- name: Update internal CNAME record
  infoblox:
    server=10.1.1.1
    username=joebob
    password=joebob
    action=update_cname_record
    dns_view=Internal
    cname=ansible.xyz
    canonical=ansibletest002.xyz
    current=ansible.xyz
  register: infoblox_result

I then get the following error:

    "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"
}

My question is, what exactly am I suppose to input for the value of current?  It appears to be looking for some sort of key value but if that's true where/how do I attain that?

 

Any help would be appreciated, thank you.

 

J5

Showing results for 
Search instead for 
Do you mean 

Recommended for You