From 0b0bb83ce52bd6dcb0a1915f37808b8047e61e6d Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 13 Oct 2024 21:18:11 -0400 Subject: [PATCH] remove timezone and add to NTP --- ansible/playbooks/ntp.yml | 4 ++++ ansible/playbooks/timezone.yml | 16 ---------------- 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 ansible/playbooks/timezone.yml diff --git a/ansible/playbooks/ntp.yml b/ansible/playbooks/ntp.yml index d86a284..970f83d 100644 --- a/ansible/playbooks/ntp.yml +++ b/ansible/playbooks/ntp.yml @@ -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 diff --git a/ansible/playbooks/timezone.yml b/ansible/playbooks/timezone.yml deleted file mode 100644 index 567dd67..0000000 --- a/ansible/playbooks/timezone.yml +++ /dev/null @@ -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 \ No newline at end of file