ansible-common/tasks/ntp.yml

10 lines
251 B
YAML
Raw Normal View History

- name: Configure NTP server for systemd-timesyncd
ini_file:
path: /etc/systemd/timesyncd.conf
section: Time
option: NTP
value: "{{ vars.ntp_servers | join(' ') }}"
notify: restart systemd-timesyncd
when: vars.setup_ntp is true