Refs #8141: Time Server Deploy - finish role

This commit is contained in:
Xavi Lleó 2024-11-26 12:07:33 +01:00
parent 5b3996207b
commit 9df86be7a4
6 changed files with 18 additions and 15 deletions

View File

@ -1,2 +1,2 @@
variable1: false
variable2_checked: false

View File

@ -1,6 +1,5 @@
- name: restart service
- name: restart-chrony
systemd:
name: service
name: chrony
state: restarted
- name: update example_command configuration
command: /usr/sbin/example_command

View File

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

View File

@ -1,2 +1,15 @@
- name: Install NRPE packages
apt:
name: chrony
state: present
install_recommends: no
- name: Set NRPE 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

@ -1,7 +0,0 @@
domain {{ host_domain }}
search {{ host_domain }}
{% if resolvers is defined %}
{% for resolver in resolvers %}
nameserver {{resolver}}
{% endfor %}
{% endif %}