Systemd Facts¶
systemd.SystemdEnabled
¶
host.get_fact(SystemdEnabled, user_mode=False, machine=None, user_name=None, services=None)
rns a dictionary map of systemd units to booleans indicating whether they are enabled.
ode:: python
- {
“ssh.service”: True, “containerd.service”: True, “apt-daily.timer”: False,
}
systemd.SystemdStatus
¶
host.get_fact(SystemdStatus, user_mode=False, machine=None, user_name=None, services=None)
rns a dictionary map of systemd units to booleans indicating whether they are active.
user_mode**: whether to use user mode machine**: machine name
ode:: python
- {
“ssh.service”: True, “containerd.service”: True, “apt-daily.timer”: False,
}