Compare commits
6 Commits
main
...
8141-Time_
Author | SHA1 | Date |
---|---|---|
Xavi Lleó | 5b3996207b | |
Xavi Lleó | e214479a5a | |
Xavi Lleó | 8869dc4fbe | |
Xavi Lleó | 7af67caade | |
Xavi Lleó | e96ace76e9 | |
Xavi Lleó | 9055c8beb4 |
|
@ -0,0 +1,9 @@
|
||||||
|
- name: Configure Directory, Time, and Database Services
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- import_role:
|
||||||
|
name: ldap_samba
|
||||||
|
- import_role:
|
||||||
|
name: timeserver
|
||||||
|
- import_role:
|
||||||
|
name: database
|
|
@ -0,0 +1,2 @@
|
||||||
|
variable1: false
|
||||||
|
variable2_checked: false
|
|
@ -0,0 +1,6 @@
|
||||||
|
- name: restart service
|
||||||
|
systemd:
|
||||||
|
name: service
|
||||||
|
state: restarted
|
||||||
|
- name: update example_command configuration
|
||||||
|
command: /usr/sbin/example_command
|
|
@ -0,0 +1,4 @@
|
||||||
|
- import_tasks: timeserver.yml
|
||||||
|
tags: timeserver
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
|
|
@ -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 }}
|
|
@ -0,0 +1,7 @@
|
||||||
|
domain {{ host_domain }}
|
||||||
|
search {{ host_domain }}
|
||||||
|
{% if resolvers is defined %}
|
||||||
|
{% for resolver in resolvers %}
|
||||||
|
nameserver {{resolver}}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue