-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timezone requires tzdata on Alpine Linux #3242
Comments
Files identified in the description: If these files are inaccurate, please update the |
I guess adding another note like the one for SmartOS (https://github.com/ansible-collections/community.general/blob/main/plugins/modules/system/timezone.py#L45) should suffice. Would you mind creating a PR? |
I believe zoneinfo files (which are usually provided by So maybe I think it's appropriate to add note here:
(Note: Possibly most of other UNIX systems follow same rule, but I'm not sure). |
something like this?
|
Small copy-editing:
|
Hi @mator any luck working on this? The patch itself is very straightforward, so let us know if you have any issues with the setup. I have written this small tool I use to save me some of the trouble setting up a test environment for the collection: I still consider it alpha quality (especially because it is lacking a test suite), but on the other hand, I have been using it constantly for quite a while now. #shameless #selfpromotion |
* small docs update for timezone module fixes #3242 * Update plugins/modules/system/timezone.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
Summary
I cannot update the timezone on Alpine Linux without tzdata installed. It goes like this:
/usr/share/zoneinfo does not seem to exist.
It appears tzdata provides zoneinfo: https://pkgs.alpinelinux.org/contents?file=&path=%2Fusr%2Fshare%2Fzoneinfo*&name=&branch=v3.14
If instead I install
tzdata
first, timezone works fine, with output like this:Therefore, I believe that the documentation should mention tzdata is necessary on Alpine Linux:
https://pkgs.alpinelinux.org/package/v3.14/main/x86_64/tzdata
Neither the latest nor devel version of this documentation mentions tzdata or Alpine Linux:
https://docs.ansible.com/ansible/latest/collections/community/general/timezone_module.html
https://docs.ansible.com/ansible/devel/collections/community/general/timezone_module.html
Issue Type
Documentation Report
Component Name
timezone
Ansible Version
Configuration
OS / Environment
macOS Catalina 10.15.7 (19H1323)
Running on a Linode virtual host using their Alpine 3.14 image, which is the latest non-rolling release of Alpine: https://api.linode.com/v4/images
uname -a on the host running Alpine Linux:
Linux dragon 5.10.43-0-virt #1-Alpine SMP Fri, 11 Jun 2021 07:41:12 +0000 x86_64 Linux
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: