geerlingguy / ansible-role-ntp

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

Debian12 runs ntpsec by default, Role does not work as expected #128

Closed HaZet1968 closed 8 months ago

HaZet1968 commented 1 year ago

Hi,

Debian 12 runs now ntpsec instead of ntp. The Configuration is more or less identical as with ntp, but some pathes are different. For making it work I added a bit to the main.yml:

main.yml:

`

**- name: Overwrite OS-specific varaiables when Debian>=12 include_vars: "Debian12.yml" when:

and added Debian12.yml in the vars folder:

Debian12.yml:

`

ntp_daemon: ntpsec ntp_tzdata_package: tzdata __ntp_package: ntpsec ntp_config_file: /etc/ntpsec/ntp.conf __ntp_driftfile: /var/lib/ntpsec/ntp.drift ntp_cron_daemon: cron ` Unfortunatly I am not so closed to git to make a Pull request, and it's not really pretty. But it works. Maybe someone else who is more familiar with ansible and git can make it better.

Maybe someone else is interested in it

github-actions[bot] commented 11 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 8 months ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.