-
Notifications
You must be signed in to change notification settings - Fork 5
/
ntp.yml
36 lines (32 loc) · 818 Bytes
/
ntp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- hosts: homelab
vars:
application: ntp
docker_network: "{{ networks.pub }}"
tasks:
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: cturra/ntp:latest
read_only: true
tmpfs:
- /etc/chrony:rw,mode=1750
- /run/chrony:rw,mode=1750
- /var/lib/chrony:rw,mode=1750
env:
NTP_SERVERS: |-
{{
[
"ntp0.cs.mu.OZ.AU",
"ntp1.cs.mu.OZ.AU",
"0.au.pool.ntp.org",
"1.au.pool.ntp.org",
"2.au.pool.ntp.org",
"3.au.pool.ntp.org",
] | join(',')
}}
LOG_LEVEL: "0"
traefik:
- port: 123
type: udp