xoxys.ntp/tasks/setup_univention.yml
Robert Kaussow 9d1219509d
All checks were successful
continuous-integration/drone/push Build is passing
remove old loop syntax
2019-08-27 23:00:09 +02:00

21 lines
637 B
YAML

---
- block:
- name: Configure ntp servers
ucr:
path: "{{ item.path }}"
value: "{{ item.value }}"
loop:
- { 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"
value: "{{ ntp_sign_requests }}"
become: True
become_user: root