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 6 months 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