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