remove timezone and add to NTP
This commit is contained in:
parent
60ac705983
commit
0b0bb83ce5
2 changed files with 4 additions and 16 deletions
|
@ -4,6 +4,10 @@
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Set the timezone to America/New_York
|
||||||
|
timezone:
|
||||||
|
name: America/New_York
|
||||||
|
|
||||||
- name: Ensure systemd-timesyncd is installed
|
- name: Ensure systemd-timesyncd is installed
|
||||||
apt:
|
apt:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Reference in a new issue