mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
add-timezone-support (#9263)
This commit is contained in:
@@ -100,3 +100,6 @@ ntp_tinker_panic: false
|
||||
|
||||
# Force sync time immediately after the ntp installed, which is useful in in newly installed system.
|
||||
ntp_force_sync_immediately: false
|
||||
|
||||
# Set the timezone for your server. eg: "Etc/UTC","Etc/GMT-8". If not set, the timezone will not change.
|
||||
ntp_timezone: ""
|
||||
|
||||
@@ -63,3 +63,17 @@
|
||||
name: "{{ ntp_service_name }}"
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Ensure tzdata package
|
||||
package:
|
||||
name:
|
||||
- tzdata
|
||||
state: present
|
||||
when:
|
||||
- ntp_timezone
|
||||
|
||||
- name: Set timezone
|
||||
timezone:
|
||||
name: "{{ ntp_timezone }}"
|
||||
when:
|
||||
- ntp_timezone
|
||||
|
||||
Reference in New Issue
Block a user