Compare commits
8 Commits
main
...
8141-Time_
Author | SHA1 | Date |
---|---|---|
Xavi Lleó | 31180a8d66 | |
Xavi Lleó | 9df86be7a4 | |
Xavi Lleó | 5b3996207b | |
Xavi Lleó | e214479a5a | |
Xavi Lleó | 8869dc4fbe | |
Xavi Lleó | 7af67caade | |
Xavi Lleó | e96ace76e9 | |
Xavi Lleó | 9055c8beb4 |
|
@ -0,0 +1,7 @@
|
|||
- name: Configure Directory, Time, and Database Services
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Configure services to install in the server
|
||||
import_role:
|
||||
name: services
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
- name: restart-chrony
|
||||
systemd:
|
||||
name: chrony
|
||||
state: restarted
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
- import_tasks: timeserver.yml
|
||||
tags: timeserver
|
|
@ -0,0 +1,15 @@
|
|||
- name: Install CHRONY packages
|
||||
apt:
|
||||
name: chrony
|
||||
state: present
|
||||
install_recommends: no
|
||||
- name: Set CHRONY generic configuration
|
||||
template:
|
||||
src: timeserver_custom.conf
|
||||
dest: /etc/chrony/conf.d/custom.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
notify: restart-chrony
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# vendor zone
|
||||
{{ timeserver_vendor_zone }}
|
||||
|
||||
# Logging
|
||||
log tracking statistics
|
||||
|
||||
# will serve as local NTP server
|
||||
local stratum 10
|
||||
|
||||
# restrict clients from your subnets
|
||||
allow {{ timeserver_restrict_clients_zone }}
|
||||
|
||||
# in case this server lost INTERNET connection
|
||||
local stratum 10
|
||||
|
||||
# in case you wanna to broadcat time in your subnet
|
||||
{{ timeserver_broadcat_subnet }}
|
Loading…
Reference in New Issue