Open blackwood821 opened 10 months ago
It appears to fail when timedatectl
is not available which is the case on the Docker container.
cc @indrajitr @jasperla @tmshn click here for bot help
Hi @blackwood821 thanks for reporting. I am checking the code and not having timedatectl
makes the code assume it is a NosystemdTimezone
. In theory that should work too, but that error message you see if because the before
and after
values are different.
It would seem the Nosystemd code is not taking some things into account:
after
result.I am trying to replicate the error in a test here.
Summary
Not able to change the time zone using the
timezone
module againstdebian:bullseye
Docker container as the remote host.Here is a sample playbook that succeeds on Debian 11 outside of Docker:
Here is the result:
When I run the same thing against a clean
debian:bullseye
Docker container I get the following error:On both systems the
US/Pacific
time zone alias is a symlink toAmerica/Los_Angeles
but for some reason it doesn't work on Docker.Issue Type
Bug Report
Component Name
timezone
Ansible Version
Community.general Version
Configuration
OS / Environment
macOS Ventura 13.5.1
Steps to Reproduce
Expected Results
I expected the task to succeed and change the time zone.
Actual Results
Code of Conduct