Refs #8141: Time Server Deploy - finish role
This commit is contained in:
parent
5b3996207b
commit
9df86be7a4
|
@ -1,2 +1,2 @@
|
|||
variable1: false
|
||||
variable2_checked: false
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
- import_tasks: timeserver.yml
|
||||
tags: timeserver
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
domain {{ host_domain }}
|
||||
search {{ host_domain }}
|
||||
{% if resolvers is defined %}
|
||||
{% for resolver in resolvers %}
|
||||
nameserver {{resolver}}
|
||||
{% endfor %}
|
||||
{% endif %}
|
Loading…
Reference in New Issue