create local.yml and configure chrony with it
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
# ---> Ansible
|
||||
*.retry
|
||||
EXAMPLES
|
||||
|
||||
roles
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[defaults]
|
||||
|
||||
inventory = ./inventory
|
||||
roles_path = ./roles
|
||||
|
||||
remote_user = hpf-ans
|
||||
host_key_checking = False
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Configure time synchronization
|
||||
hosts: all
|
||||
become: true
|
||||
vars:
|
||||
timesync_ntp_provider: chrony
|
||||
timesync_ntp_servers:
|
||||
- hostname: 0.north-america.pool.ntp.org
|
||||
iburst: true
|
||||
- hostname: 1.north-america.pool.ntp.org
|
||||
iburst: true
|
||||
- hostname: 2.north-america.pool.ntp.org
|
||||
iburst: true
|
||||
timesync_chrony_custom_settings:
|
||||
- "logdir /var/log/chrony"
|
||||
- "log measurements statistics tracking"
|
||||
roles:
|
||||
- linux-system-roles.timesync
|
||||
@@ -0,0 +1,4 @@
|
||||
---
|
||||
roles:
|
||||
- name: linux-system-roles.timesync
|
||||
version: 1.14.1
|
||||
Reference in New Issue
Block a user