# Unable to create AAAA records with os\_recordset (OpenStack Designate)

**URL:** <https://forum.ansible.com/t/unable-to-create-aaaa-records-with-os-recordset-openstack-designate/23291>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 20, 2016, 6:09am UTC](https://forum.ansible.com/t/unable-to-create-aaaa-records-with-os-recordset-openstack-designate/23291 "2016-12-20T06:09:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Klaus](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Andrew\_Klaus](https://forum.ansible.com/u/Andrew_Klaus)\
**Post date:** [December 20, 2016, 6:09am UTC](https://forum.ansible.com/t/unable-to-create-aaaa-records-with-os-recordset-openstack-designate/23291/1 "2016-12-20T06:09:28Z")

</div>

Hi guys,

I’m trying to use Ansible to provision DNS records in OpenStack using the os\_recordset module.

I’m running Ansible 2.2.0.0 installed from python pip on Ubuntu 16.04.

I have an A record setup already for this specific FQDN, but when I go to add an AAAA record alongside it, the following error come up:

task path: /home/ubuntu/work/playbooks/setup\_designate\_zone.yml:23  
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/extras/cloud/openstack/os\_recordset.py  
 ESTABLISH LOCAL CONNECTION FOR USER: ubuntu  
 EXEC /bin/sh -c ‘( umask 77 && mkdir -p “`echo $HOME/.ansible/tmp/ansible-tmp-1482213565.49-738654580181`” && echo ansible-tmp-1482213565.49-738654580181=“`echo $HOME/.ansible/tmp/ansible-tmp-1482213565.49-738654580181`” ) && sleep 0’  
 PUT /tmp/tmp6CHd6g TO /home/ubuntu/.ansible/tmp/ansible-tmp-1482213565.49-738654580181/os\_recordset.py  
 EXEC /bin/sh -c ‘chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1482213565.49-738654580181/ /home/ubuntu/.ansible/tmp/ansible-tmp-1482213565.49-738654580181/os\_recordset.py && sleep 0’  
 EXEC /bin/sh -c ‘/usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1482213565.49-738654580181/os\_recordset.py; rm -rf “/home/ubuntu/.ansible/tmp/ansible-tmp-1482213565.49-738654580181/” \> /dev/null 2\>&1 && sleep 0’  
fatal: [→ localhost]: FAILED! =\> {  
“changed”: false,  
“failed”: true,  
“invocation”: {  
“module\_args”: {  
“api\_timeout”: null,  
“auth”: null,  
“auth\_type”: null,  
“availability\_zone”: null,  
“cacert”: null,  
“cert”: null,  
“cloud”: “dev”,  
“description”: null,  
“endpoint\_type”: “public”,  
“key”: null,  
“name”: “oc”,  
“records”: [  
“”  
],  
“recordset\_type”: “AAAA”,  
“region\_name”: null,  
“state”: “present”,  
“timeout”: 180,  
“ttl”: 3600,  
“verify”: true,  
“wait”: true,  
“zone”: “.”  
},  
“module\_name”: “os\_recordset”  
},  
“msg”: “Error updating recordset . (Inner Exception: u’’ is not a ‘ipv4’)”  
}

The Task that’s failing is:

- name: Setup AAAA entries  
delegate\_to: localhost  
os\_recordset:  
cloud: dev  
state: present  
zone: “.”  
name: “oc”  
recordset\_type: AAAA  
records: “{{ openstack.accessIPv6 }}”  
ttl: 3600

Any help would be great.

Thanks
