community.general/lib/ansible/modules/system
Adam Miller c4bf168940 service_facts correct meaning of state for systemd service units (#40914)
* service_facts correct meaning of state for systemd service units

Fixes #40809

Previously this module used the commend `systemctl list-unit-files
--type=service` to query state of services but list-unit-files only
shows enabled vs disabled which is not what we want for "state"

Signed-off-by: Adam Miller <admiller@redhat.com>

* make sure to define service_name before referencing it

Signed-off-by: Adam Miller <admiller@redhat.com>
2018-06-13 15:01:48 -04:00
..
__init__.py
aix_inittab.py
aix_lvol.py
alternatives.py
at.py
authorized_key.py
awall.py
beadm.py
capabilities.py
cron.py
cronvar.py
crypttab.py
dconf.py
debconf.py
facter.py
filesystem.py
firewalld.py
gconftool2.py
getent.py
group.py
hostname.py
interfaces_file.py
iptables.py
java_cert.py
java_keystore.py
kernel_blacklist.py
known_hosts.py
locale_gen.py
lvg.py
lvol.py
make.py
mksysb.py
modprobe.py
mount.py
nosh.py
ohai.py
open_iscsi.py
openwrt_init.py
osx_defaults.py
pam_limits.py
pamd.py
parted.py
ping.py
puppet.py
runit.py
seboolean.py
sefcontext.py
selinux.py
selinux_permissive.py
seport.py
service.py
service_facts.py service_facts correct meaning of state for systemd service units (#40914) 2018-06-13 15:01:48 -04:00
setup.py
solaris_zone.py
svc.py
sysctl.py
systemd.py
sysvinit.py
timezone.py BSDTimezone: distinguish UTC and Etc/UTC (#41234) 2018-06-11 10:27:50 -04:00
ufw.py
user.py
vdo.py