fimfarchive/operations/common/tasks/time.yml

28 lines
462 B
YAML
Raw Permalink Normal View History

2017-05-27 21:44:37 +02:00
---
#
# Configures time and synchronization.
#
- name: Set timezone to Etc/UTC
file:
src: /usr/share/zoneinfo/Etc/UTC
dest: /etc/timezone
force: yes
state: link
register: result
- name: Reconfigure tzdata
command: dpkg-reconfigure -f noninterractive tzdata
2018-06-01 20:57:02 +02:00
when: result is changed
2017-05-27 21:44:37 +02:00
- name: Install NTP daemon
apt:
name: ntp
state: present
- name: Start NTP daemon
service:
name: ntp
enabled: yes
2017-05-27 21:44:37 +02:00
state: started