Cobbler templated BIND and dnsmasq back in the day without too much
difficulty - you could do this with host variables and a single template
call, where each host has both a variable for it's IP (or just uses the
fact) and has another variable "hostname".

Shouldn't need to loop much in the playbook itself at all, just the
template.

dnsmasq is obviously easier to configure if it's sufficient.



On Sun, Dec 14, 2014 at 2:14 AM, Kevin Burton <[email protected]> wrote:
>
> you know, I guess I could use loops:
>
> http://docs.ansible.com/playbooks_loops.html#standard-loops
>
> and define a map from host -> IP and then have one loop do the forward DNS
> and another do the reverse.
>
> On Saturday, December 13, 2014 11:13:23 PM UTC-8, Kevin Burton wrote:
>>
>> Since we have all of our cluster in Ansible I want to also manage our DNS
>> this way too.
>>
>> What I was thinking of is having a playbook that runs before all of our
>> other playbooks.
>>
>> One issue though is that I'd like a module that does forward and reverse
>> DNS with one pass.
>>
>> I haven't found any that can do it... the dnsimple module looks nice but
>> it can't do forward and reverse DNS.
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ece8e64a-eb04-4e7d-b212-c95761b2f26f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/ece8e64a-eb04-4e7d-b212-c95761b2f26f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxDcFAy1o%3DduAvuS6nOS6fpN%3DzTxV9sN1f4i0kAVpBJUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to