Systemd Facts¶
See also: Systemd Operations.
systemd.SystemdEnabled
¶
host.get_fact(SystemdEnabled, user_mode=False, machine=None, user_name=None)
Returns a dictionary map of systemd units to booleans indicating whether they are enabled.
{
"ssh.service": True,
"containerd.service": True,
"apt-daily.timer": False,
}
systemd.SystemdStatus
¶
host.get_fact(SystemdStatus, user_mode=False, machine=None, user_name=None)
Returns a dictionary map of systemd units to booleans indicating whether they are active.
- user_mode: whether to use user mode
- machine: machine name
{
"ssh.service": True,
"containerd.service": True,
"apt-daily.timer": False,
}