Files
community.general/plugins/modules
Alexei Znamensky 24ca79658a dconf: add dbus-broker support by improving D-Bus session discovery (#11772)
* dconf: add dbus-broker support by improving D-Bus session discovery

Extend DBusWrapper._get_existing_dbus_session() to check:
1. DBUS_SESSION_BUS_ADDRESS in the current process environment
2. /run/user/<uid>/bus (canonical socket for systemd and dbus-broker)
3. Process scan (legacy fallback, as before)

Also add _validate_address() to support both dbus-send and busctl,
making the module work on systems using dbus-broker (e.g. Fedora Silverblue)
where no process exposes DBUS_SESSION_BUS_ADDRESS in its environment.

Fixes: https://github.com/ansible-collections/community.general/issues/495

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* dconf: add changelog fragment for dbus-broker support

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* dconf: restore dbus validator requirement and example usage

Restore fail_json when neither dbus-send nor busctl is available,
preserving the original hard requirement for a validator binary.
Restore the example invocation in DBusWrapper docstring.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 21:49:09 +02:00
..
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2025-11-29 08:28:22 +01:00
2026-01-05 18:12:39 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-04-12 13:12:26 +02:00
2026-03-15 19:47:25 +01:00
2025-11-12 21:06:14 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-01-31 21:30:39 +13:00
2025-11-12 21:12:47 +01:00
2025-11-01 13:46:53 +01:00
2026-03-13 07:44:21 +01:00
2026-03-24 18:51:02 +13:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-03-31 07:08:50 +02:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-12 21:12:47 +01:00