-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requestmodulemodulemodulepluginsplugin (any type)plugin (any type)
Description
Summary
The ansible.builtin.systemd_service module has a scope parameter that accepts the options system (default), user, and global. I think adding a similar parameter to the community.general.systemd_info module would be useful so that information could be gathered about user units. Although less common, user units are sometimes used for things like Podman rootless containers (Quadlets or the older podman generate systemd). As far as I can tell, there is no Ansible module that gathers this information. Like the community.general.systemd_info module, the ansible.builtin.service_facts module only gathers facts about system services.
Issue Type
Feature Idea
Component Name
systemd_info
Additional Information
# Gather info for all systemd services, targets, sockets, mounts and timers for the user
- name: Gather all systemd unit info for the user
community.general.systemd_info:
scope: user
register: results
become: true
become_user: usernameCode of Conduct
- I agree to follow the Ansible Code of Conduct
Metadata
Metadata
Assignees
Labels
featureThis issue/PR relates to a feature requestThis issue/PR relates to a feature requestmodulemodulemodulepluginsplugin (any type)plugin (any type)