mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-29 16:18:00 +01:00
27 lines
444 B
YAML
27 lines
444 B
YAML
|
---
|
||
|
#
|
||
|
# 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
|
||
|
when: result | changed
|
||
|
|
||
|
- name: Install NTP daemon
|
||
|
apt:
|
||
|
name: ntp
|
||
|
state: present
|
||
|
|
||
|
- name: Start NTP daemon
|
||
|
service:
|
||
|
name: ntp
|
||
|
state: started
|