xoxys.ntp/tasks/setup_univention.yml

21 lines
637 B
YAML
Raw Normal View History

2018-11-19 22:48:15 +00:00
---
- block:
- name: Configure ntp servers
ucr:
path: "{{ item.path }}"
value: "{{ item.value }}"
2019-08-27 21:00:09 +00:00
loop:
2018-11-19 22:48:15 +00:00
- { path: timeserver, value: "{{ ntp_servers[0] | default('') }}" }
- { path: timeserver2, value: "{{ ntp_servers[1] | default('') }}" }
- { path: timeserver3, value: "{{ ntp_servers[2] | default('') }}" }
loop_control:
label: "variable: {{ item.path }}={{ item.value }}"
notify: __ntpd_restart
- name: Configure signed ntp time requests
ucr:
path: "ntp/signed"
2018-11-19 22:50:02 +00:00
value: "{{ ntp_sign_requests }}"
2018-11-19 22:48:15 +00:00
become: True
become_user: root