create local.yml and configure chrony with it

This commit is contained in:
2026-08-30 15:50:18 -05:00
parent 5706fc9854
commit 8d40ddc636
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# ---> Ansible
*.retry
EXAMPLES
roles
+1
View File
@@ -1,6 +1,7 @@
[defaults]
inventory = ./inventory
roles_path = ./roles
remote_user = hpf-ans
host_key_checking = False
+18
View File
@@ -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
+4
View File
@@ -0,0 +1,4 @@
---
roles:
- name: linux-system-roles.timesync
version: 1.14.1