Compare commits

..

8 Commits

6 changed files with 48 additions and 0 deletions

7
playbooks/services.yml Normal file
View File

@ -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

View File

@ -0,0 +1,2 @@

View File

@ -0,0 +1,5 @@
- name: restart-chrony
systemd:
name: chrony
state: restarted

View File

@ -0,0 +1,2 @@
- import_tasks: timeserver.yml
tags: timeserver

View File

@ -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

View File

@ -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 }}