# Feature to add retry for replicated servers in ipa\_dnsrecord

**URL:** <https://forum.ansible.com/t/feature-to-add-retry-for-replicated-servers-in-ipa-dnsrecord/33164>\
**Category:** Ansible Developer\
**Created:** [June 12, 2020, 3:50pm UTC](https://forum.ansible.com/t/feature-to-add-retry-for-replicated-servers-in-ipa-dnsrecord/33164 "2020-06-12T15:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nit\_P](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@Nit\_P](https://forum.ansible.com/u/Nit_P)\
**Post date:** [June 12, 2020, 3:50pm UTC](https://forum.ansible.com/t/feature-to-add-retry-for-replicated-servers-in-ipa-dnsrecord/33164/1 "2020-06-12T15:50:57Z")

</div>

Hello,

I am working on a FreeIPA replicated setup and have some ansible playbooks which interact with FreeIPA to create DNS records using [ipa\_dnsrecord](https://github.com/ansible/ansible/blob/stable-2.7/lib/ansible/modules/identity/ipa/ipa_dnsrecord.py)module. The current module seems to support only a single host instead of multiple hosts. So in all the places, my playbooks have to handle the case to retry the replicated server if the first one is not available. Rather than handling in the playbooks, is it possible to modify the module to take in the list of all of the replicated hostnames and trying them one by one in case of failures?

I am essentially looking to centralize the retry mechanism within the module instead of the playbooks.

Please pardon me for any mistakes in the post as this is my very first post.

Thanks,  
Nit P
