Commit e12bb10b authored by nanahira's avatar nanahira

add ntp things to cloud

parent f398a4a9
......@@ -19,9 +19,14 @@
- wenaihouse.com
bridges: []
dnsmasq: {}
ntp_server: time.apple.com
tasks:
- name: mcnetwork install
import_tasks: ./tasks/mcnetwork-install-process.yaml
- name: install some packages
become: true
apt:
name: ntpdate,util-linux
- name: pull some images
docker_image:
name: '{{item}}'
......@@ -78,6 +83,13 @@
- iptables-gateways-interpreter.sh
- name: dnsmasq
import_tasks: ./tasks/dnsmasq.yaml
- name: ntpdate update cron
become: true
blockinfile:
path: /etc/crontab
marker: '# {mark} MyCard NextGen Router block for ntpdate'
block: |
40 */2 * * * root /usr/sbin/ntpdate -u {{ntp_server}} ; /usr/sbin/hwclock -w
handlers:
- name: restart_dnsmasq
docker_compose:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment