geerlingguy / ansible-role-ntp

Ansible Role - NTP
https://galaxy.ansible.com/geerlingguy/ntp/
MIT License
319 stars 243 forks source link

Debian 12 /etc/timezone inconsistent with current timezone #132

Closed websafe closed 5 months ago

websafe commented 9 months ago

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:

Should I worry about this?

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

geerlingguy commented 9 months ago

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

szEvEz commented 7 months ago

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

geerlingguy commented 5 months ago

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

geerlingguy commented 5 months ago

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

sylbal commented 3 months ago

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.

ProfessorLogout commented 1 month ago

Hi, we are currently facing the same issue (using the latest version 2.5.0).

marco@host:~
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
marco@host:~
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 Aug 28 16:07 /etc/localtime -> ../usr/share/zoneinfo/Europe/Berlin
marco@host:~
$ cat /etc/timezone
UTC
marco@host:~
$ timedatectl
               Local time: Wed 2024-09-04 13:19:19 CEST
           Universal time: Wed 2024-09-04 11:19:19 UTC
                 RTC time: Wed 2024-09-04 11:19:19
                Time zone: Europe/Berlin (CEST, +0200)
System clock synchronized: yes
              NTP service: n/a
          RTC in local TZ: no