Repurposing the cowops/debian-ntp Ansible role

This commit is contained in:
Theodotos Andreou 2017-04-28 10:24:11 +03:00
parent 6113f6373d
commit a7204cedbd
3 changed files with 7 additions and 9 deletions

View file

@ -6,13 +6,14 @@ Network Time Protocol
Requirements Requirements
------------ ------------
This role requires a debian compliant system such as ubuntu. This Ansible role requires a debian compliant system such as ubuntu. This is a
simplified version of cowops/debian-ntp with just one internal ntp server.
Role Variables Role Variables
-------------- --------------
ntp: ntp:
server: fr.pool.ntp.org server: ntp.example.com
Dependencies Dependencies
------------ ------------
@ -24,13 +25,13 @@ Example Playbook
- hosts: servers - hosts: servers
roles: roles:
- { role: cowops.debian-ntp, ntp.server: fr.pool.ntp.org } - { role: theodotos.debian-ntp, ntp.server: ntp.example.com }
Tasks Tasks
----- -----
- Install [ntp](http://www.ntp.org/) - Install [ntp](http://www.ntp.org/)
- Setup with [french ntp pool](http://www.pool.ntp.org/fr/) - Setup with internal ntp pool
License License
------- -------

View file

@ -1,2 +1,2 @@
ntp: ntp:
server: fr.pool.ntp.org server: gr.pool.ntp.org

View file

@ -18,10 +18,7 @@ filegen clockstats file clockstats type day enable
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the # pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html> # pool: <http://www.pool.ntp.org/join.html>
server 0.{{ ntp.server }} server {{ ntp.server }}
server 1.{{ ntp.server }}
server 2.{{ ntp.server }}
server 3.{{ ntp.server }}
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for