This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-playbooks/timezone.yml
2024-05-24 00:57:27 +00:00

16 lines
No EOL
384 B
YAML

- 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