ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
834 stars 1.54k forks source link

[RFE] Provide facts for systemd sockets, targets, timers #4896

Open myllynen opened 2 years ago

myllynen commented 2 years ago

Summary

It would be helpful if one could gather facts (akin the package_facts) about systemd sockets, targets, timers (and possibly other units). One could then use the information in tasks to execute or skip them, e.g. when a timer is present on the system etc.

Issue Type

Feature Idea

Component Name

systemd

Additional Information

This probably could be similar to package_facts so perhaps something like:

- name: Gather systemd unit facts
  systemd_facts:

Or possibly this could be init system independent if the same idea applies to other init managers on non-systemd platforms.

This issue is moved from https://github.com/ansible/ansible/issues/78107.

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description: None

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help