How to easily configure DNS and NTP settings on my clients?
18 views
Skip to first unread message
Jörg Kastning
unread,
Aug 3, 2016, 7:29:09 AM8/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello,
I'm still new to ansible and have a lot of questions on my mind. Maybe someone could answer two of them.
In my environment I have a lot of Red Hat and some SUSE servers. I'd like to use ansible to configure the settings for DNS and NTP on these hosts. To get the most out of a tool like ansible I assume that there must be some kind of module where I could define the values for my DNS and NTP servers and ansible discovers the target operating system and sets the desired values properly. But I didn't find any module to do so.
For an example, I would not like to create seperate plays for the different systems to tell them on Red Hat put the values there and on SUSE put them somewhere else. I simply like to play something like "set DNS to 192.168.1.1 and NTP to 192.168.1.2 on all hosts in my inventory". I think about something like the "package"-module for package installation on different operating systems.
I would appreciate if someone could give an example on how to do that.