+ - name: configure systemd-timesyncd
+ copy:
+ dest: /etc/systemd/timesyncd.conf
+ content: |
+ # See timesyncd.conf(5) for details.
+ [Time]
+ NTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
+ register: timesyncd_conf
+ - name: restart systemd-timesyncd
+ when: timesyncd_conf.changed
+ service: name=systemd-timesyncd state=restarted enabled=yes