浏览代码

set up ntp server on nas

Blaine Story 8 月之前
父节点
当前提交
f119a9556f
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      plays/nas-services.yml

+ 8 - 0
plays/nas-services.yml

@@ -9,6 +9,7 @@
     - rtl_433
     - cloud-backups
     - statusservices
+    - linux-system-roles.timesync
     #- linux-system-roles.firewall # fw is disabled for homeassistant
     #- linux-system-roles.metrics
 
@@ -185,6 +186,13 @@
           - 8840:8840
 
 
+    timesync_ntp_servers:
+      - hostname: 2.centos.pool.ntp.org
+        iburst: true
+        pool: true
+
+    timesync_chrony_custom_settings:
+      - "allow 10.0.0.0/24"
 
     metrics_monitored_hosts:
       - nas.home.arpa