Skip to content

Add dbus, so commands like timedatectl and localectl will work. #8

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

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

Disco-Dave
Copy link

Issue: #5

I recently ran into this issue trying to test something like this:

- name: "Set timezone: {{ time_zone }}"
  become: true
  community.general.timezone:
    name: "{{ time_zone }}"

Which would fail, since timedatectl commands weren't working:

root@instance:/# timedatectl status
Failed to connect to bus: No such file or directory

So I tried this person's advice, and it resolved the issue for me:

root@instance:/# timedatectl status
               Local time: Tue 2025-03-25 22:00:17 UTC
           Universal time: Tue 2025-03-25 22:00:17 UTC
                 RTC time: n/a
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: n/a
          RTC in local TZ: no

@geerlingguy geerlingguy merged commit e006db1 into geerlingguy:master Mar 25, 2025
2 checks passed
@geerlingguy
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants