| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Create the linger file directly instead of using loginctl enable-linger,
which fails in containers where systemd-logind isn't fully functional.
The linger file at /var/lib/systemd/linger/<user> is what systemd checks
to persist user instances across logouts.
After creating the linger file, explicitly start user@<uid>.service to
boot the user's systemd instance immediately. This creates the D-Bus
session bus socket at /run/user/<uid>/bus, which is required for
systemctl --user to work. Without this, roles like pipewire that manage
user-scoped services fail with "Failed to connect to user scope bus".
This also refactors the user creation to simplify the logic and make the
user.id available for both cases of password or default_password
Co-Authored-By: Claude.ai
|
|
|
|
|
|
If no user_password is provided, the behavior remains the same, it uses
the default changeme password and requires to be changed for using sudo
If a user_password is provided, this hashed password will be used
instead of the default and doesn't require changing on first usage of
sudo
|
|
|
|
This allows the creation and persisting of the /run/user/UID/
directories required for gpg smart-card forwarding agent.
|
|
|
|
This modularity means that each role can be installed in a playbook by
itself as long as the other roles exist around it.
This also straps the ensure dependency packages exist in any of the
roles tasks, they should be moved to their own roles and configured
properly if needed.
|
|
It's more modular and each role can manage its own group memberships
|
|
|
|
This is slightly opinionated on the configurations, but it should be
easily changed by the user later on during setup or via some other
ansible role.
|
|
|
|
Instead of optimizing for task execution for boot, it's simpler and
almost as equally safe (if not even more) to require the role for boot
instead of requiring each of it's needed tasks.
This will also prevent having internal bugs because a set fact wasn't
required for boot and didn't add the info
(similar to the fix in commit: 9f72c58)
|
|
|
|
|
|
|