WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2fc37fa

Browse files
author
brucellino
committed
Working on roles. Using @arcimboldo 's ansible playbooks as inspiration
1 parent 6b43086 commit 2fc37fa

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file is managed by Ansible.
2+
# taken from https://github.com/gc3-uzh-ch/ansible-playbooks 7/03/2014
3+
127.0.0.1 localhost.localdomain localhost
4+
5+
{% if hosts %}
6+
{% for host in hosts|sort %}
7+
{% if host != 'localhost' %}
8+
{{ hostvars[host].ansible_default_ipv4.address }} {{ host }}
9+
{% endif %}
10+
{% endfor -%}
11+
12+
{% else %}
13+
{% for host in groups['all']|sort %}
14+
{% if host != 'localhost' %}
15+
{{ hostvars[host].ansible_default_ipv4.address }} {{ host }}
16+
{% endif %}
17+
{% endfor %}
18+
19+
{% endif %}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
driftfile /var/lib/ntp/ntp.drift
2+
3+
4+
# Enable this if you want statistics to be logged.
5+
#statsdir /var/log/ntpstats/
6+
7+
statistics loopstats peerstats clockstats
8+
filegen loopstats file loopstats type day enable
9+
filegen peerstats file peerstats type day enable
10+
filegen clockstats file clockstats type day enable
11+
12+
# Specify one or more NTP servers.
13+
14+
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
15+
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
16+
# more information.
17+
server 0.ubuntu.pool.ntp.org
18+
server 1.ubuntu.pool.ntp.org
19+
server 2.ubuntu.pool.ntp.org
20+
server 3.ubuntu.pool.ntp.org
21+
22+
# Use Ubuntu's ntp server as a fallback.
23+
server ntp.ubuntu.com
24+
25+
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
26+
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
27+
# might also be helpful.
28+
#
29+
# Note that "restrict" applies to both servers and clients, so a configuration
30+
# that might be intended to block requests from certain clients could also end
31+
# up blocking replies from your own upstream servers.
32+
33+
# By default, exchange time with everybody, but don't allow configuration.
34+
restrict -4 default kod notrap nomodify nopeer noquery
35+
restrict -6 default kod notrap nomodify nopeer noquery
36+
37+
# Local users may interrogate the ntp server more closely.
38+
restrict 127.0.0.1
39+
restrict ::1

0 commit comments

Comments
 (0)