ansible-role-ntp icon indicating copy to clipboard operation
ansible-role-ntp copied to clipboard

Debian 12 /etc/timezone inconsistent with current timezone

Open websafe opened this issue 1 year ago • 1 comments

Hello,

I have installed Debian 12 using the Europe/Warsaw timezone and configured the host using ntp_timezone=US/Eastern.

And then I've noticed the following:

  • /etc/localtime points to /usr/share/zoneinfo/US/Eastern - OK, as expected,
  • date returns EST - OK, as expected,
  • /etc/timezone still contains Europe/Warsaw - inconsistent / unexpected.

Should I worry about this?

I have found #10 but this seems to be unsolved?

websafe avatar Jan 03 '24 15:01 websafe

Interestingly, I'm also getting a CI idempotence failure on Debian 12 (and only Debian 12...):

https://github.com/geerlingguy/ansible-role-ntp/actions/runs/7649697033/job/20844537505#step:5:212

geerlingguy avatar Jan 25 '24 04:01 geerlingguy

Not sure if this is related, but on Debian Bookworm the ntp config file is now located at

/etc/ntpsec/ntp.conf and not /etc/ntp.conf

szEvEz avatar Mar 22 '24 14:03 szEvEz

https://github.com/geerlingguy/ansible-role-ntp/pull/130 may fix this — going to test again soon.

geerlingguy avatar May 04 '24 20:05 geerlingguy

I believe this is fixed now. Please let me know if not, and we can take another look.

geerlingguy avatar May 04 '24 20:05 geerlingguy

Hi, I updated to version 2.5.0

I seem to have the same behaviour on one debian12 instance

ls -l /etc/localtime
lrwxrwxrwx 1 root root 34 Jul 21 14:34 /etc/localtime -> ../usr/share/zoneinfo/Europe/Paris
cat /etc/timezone
Etc/UTC
date
Mon Jul 22 08:45:27 CEST 2024

And on some other D12 instances the timezone is not configured at all, it stays on UTC, did not have time to investigate this second point at the moment to give more information.

sylbal avatar Jul 22 '24 06:07 sylbal