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.
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: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