remove timezone and add to NTP

This commit is contained in:
Matt Reeves 2024-10-13 21:18:11 -04:00
parent 60ac705983
commit 0b0bb83ce5
2 changed files with 4 additions and 16 deletions

View file

@ -4,6 +4,10 @@
become: true
tasks:
- name: Set the timezone to America/New_York
timezone:
name: America/New_York
- name: Ensure systemd-timesyncd is installed
apt:
name: systemd-timesyncd

View file

@ -1,16 +0,0 @@
- name: Set timezone and configure timesyncd
hosts: "*"
become: yes
tasks:
- name: set timezone
shell: timedatectl set-timezone America/New_York
- name: Make sure timesyncd is stopped
systemd:
name: systemd-timesyncd.service
state: stopped
- name: Make sure timesyncd is started
systemd:
name: systemd-timesyncd.service
state: started