# ansible-nsupdate - module allowing dynamic dns updates

**URL:** <https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828>\
**Category:** Ansible Project\
**Created:** [July 23, 2015, 8:33am UTC](https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828 "2015-07-23T08:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Skarbek](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Marcin\_Skarbek](https://forum.ansible.com/u/Marcin_Skarbek)\
**Post date:** [July 23, 2015, 8:33am UTC](https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828/1 "2015-07-23T08:33:40Z")

</div>

Hi,

It’s highly possible that someone created such module already but if not and you are looking for a simple way to add, remove or update dns record without editing zone files ansible-nsupdate allows to use dynamic update requests using TSIG.It’s crappy but works and will be improved. 😉

[https://github.com/mskarbek/ansible-nsupdate](https://github.com/mskarbek/ansible-nsupdate)

Marcin

---

<div class="post-metadata">

**Author:** ![hector\_marina](https://avatars.discourse-cdn.com/v4/letter/h/bcef8e/32.png) [@hector\_marina](https://forum.ansible.com/u/hector_marina)\
**Post date:** [February 22, 2016, 4:58pm UTC](https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828/2 "2016-02-22T16:58:57Z")

</div>

How do you implement it?

---

<div class="post-metadata">

**Author:** ![Michael\_Pophal](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Michael\_Pophal](https://forum.ansible.com/u/Michael_Pophal)\
**Post date:** [January 1, 2017, 6:37pm UTC](https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828/3 "2017-01-01T18:37:42Z")

</div>

Hi,  
I’m very keen on this module, but unfortunately I’ve no idea how to install it. Could you please drop a hint, I’m just a ansible user 😉  
Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![Andreas\_Olsson](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Andreas\_Olsson](https://forum.ansible.com/u/Andreas_Olsson)\
**Post date:** [January 2, 2017, 8:02am UTC](https://forum.ansible.com/t/ansible-nsupdate-module-allowing-dynamic-dns-updates/18828/4 "2017-01-02T08:02:36Z")

</div>

sön 2017-01-01 klockan 10:37 -0800 skrev 'Michael Pophal':

> I'm very keen on this module, but unfortunately I've no idea how to  
> install it. Could you please drop a hint, I'm just a ansible user 😉

Well, here is how I installed it. The following commands being relative  
to the playbook top-level directory.

&nbsp;&nbsp;mkdir -p library vendor  
&nbsp;&nbsp;git submodule add [https://github.com/mskarbek/ansible-nsupdate.git](https://github.com/mskarbek/ansible-nsupdate.git) vendor/ansible-nsupdate  
&nbsp;&nbsp;ln -s ../vendor/ansible-nsupdate/nsupdate.py library/

Note that there is nothing special about the vendor directory. Might  
not even be the most appropriate name. What matters is that the module  
becomes available from within the library directory.

Doing a "git submodule add" assumes that you already have your playbook  
files within an existing Git repository. If that isn't the case you  
will probably want to do a "git clone" instead.

// Andreas
