Browse Source

Repurposing the cowops/debian-ntp Ansible role

master
Theodotos Andreou 7 years ago
parent
commit
a7204cedbd
3 changed files with 7 additions and 9 deletions
  1. +5
    -4
      README.md
  2. +1
    -1
      defaults/main.yml
  3. +1
    -4
      templates/ntp.conf.j2

+ 5
- 4
README.md View File

@@ -6,13 +6,14 @@ Network Time Protocol
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
--------------

ntp:
server: fr.pool.ntp.org
server: ntp.example.com

Dependencies
------------
@@ -24,13 +25,13 @@ Example Playbook

- hosts: servers
roles:
- { role: cowops.debian-ntp, ntp.server: fr.pool.ntp.org }
- { role: theodotos.debian-ntp, ntp.server: ntp.example.com }

Tasks
-----

- Install [ntp](http://www.ntp.org/)
- Setup with [french ntp pool](http://www.pool.ntp.org/fr/)
- Setup with internal ntp pool

License
-------


+ 1
- 1
defaults/main.yml View File

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

+ 1
- 4
templates/ntp.conf.j2 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
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
server 0.{{ ntp.server }}
server 1.{{ ntp.server }}
server 2.{{ ntp.server }}
server 3.{{ ntp.server }}
server {{ ntp.server }}


# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for


Loading…
Cancel
Save