2022-01-01 19:24:52 +01:00
|
|
|
---
|
|
|
|
- name: Setup timesync config
|
2023-08-30 23:13:59 +02:00
|
|
|
template:
|
2022-01-01 19:24:52 +01:00
|
|
|
src: timesyncd.conf.template
|
|
|
|
dest: /etc/systemd/timesyncd.conf
|
|
|
|
notify: run Timedatectl
|
|
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
|
|
|
|
- name: set Timezone
|
2023-08-30 23:13:59 +02:00
|
|
|
timezone: name={{ timedatectl_timezone }}
|
2022-01-01 19:24:52 +01:00
|
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
|
|
|
|
- name: Reastart timesyncd to apply changes
|
|
|
|
when: ansible_service_mgr == "systemd"
|
2023-08-30 23:13:59 +02:00
|
|
|
systemd:
|
2022-01-01 19:24:52 +01:00
|
|
|
state: restarted
|
|
|
|
daemon_reload: yes
|
|
|
|
name: systemd-timesyncd
|
2022-04-16 19:55:29 +02:00
|
|
|
...
|