community.general/lib/ansible/modules/system
Vlad Mencl ef131c7556 module/systemd: fix logic determining if a service needs to be enabled (#46245)
* modules/systemd: fix logic: allow scope to default to 'system'

Fix logic introduced in 7ea909418e: if 'scope' param is not specified,
it defaults to system, but the value of module.params['scope'] is None,
not 'system' - so allow for that.

* modules/systemd: fix logic: disabled means disabled

Fix logic determining whether a service with both systemd and initd files is enabled or disabled.

In situations where systemd thinks service is disabled, but rc.d symlinks mark it as enabled,
this module wrongly assumes the service is enabled.

Fix this logic: disabled means disabled

Only when the output from does NOT include disabled, consider the status of rc.d symlinks.

This essentially replicates the fixes done to the systemd handling in the "service" module in 3c89a21e0c

Fixes #22303

Fixes #44409
2018-09-28 12:05:48 -04:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
aix_inittab.py Port the aix_inittab to python 3 (#45678) 2018-09-17 19:01:38 -04:00
aix_lvol.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
alternatives.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
at.py at: PEP8 compliancy and doc fixes (#30881) 2017-10-30 00:56:54 +01:00
authorized_key.py Do not reset permissions in checkmode 2018-09-19 14:40:33 +02:00
awall.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
beadm.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
capabilities.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
cron.py Update cron.py (#46055) 2018-09-24 10:06:33 -05:00
cronvar.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
crypttab.py Ansible system module: sanity pep8 fixes (#32314) 2017-11-07 13:46:55 +01:00
dconf.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
debconf.py Update debconf example (#33397) 2017-11-30 18:07:11 +10:00
facter.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
filesystem.py filesystem: use LANG=C when cmd output is parsed 2018-08-03 11:57:22 +02:00
firewalld.py Firewalld: Switch "true" To "yes" In Examples (#44588) 2018-08-24 10:17:56 +02:00
gconftool2.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
getent.py getent: PEP8 compliancy and doc fixes (#30885) 2017-10-30 00:58:04 +01:00
group.py Fix introduction version for parameter "local" in module "group" (#43719) 2018-08-06 11:40:19 -04:00
hostname.py Add Sangoma linux (#45430) 2018-09-10 14:20:22 -04:00
interfaces_file.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
iptables.py Update docs iptables.py (#41245) 2018-08-17 20:14:30 +02:00
java_cert.py Clarify how java_cert checks keystore certificates (#26567) 2018-09-12 15:51:37 -05:00
java_keystore.py [docs] required arguments: name (#43758) 2018-08-07 15:49:52 -04:00
kernel_blacklist.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
known_hosts.py Fixed hash_host option in known_hosts module. Fixes #44284 2018-08-21 10:28:45 -07:00
locale_gen.py Remove deprecated get_exception API 2018-02-05 23:39:56 -05:00
lvg.py lvg: Allow unit to be specified for pesize (#39666) 2018-05-07 07:50:58 +02:00
lvol.py Documentation change for resizefs (#43224) 2018-07-25 00:22:24 +02:00
make.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
mksysb.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
modprobe.py modprobe: PEP8 compliancy and doc fixes (#31255) 2017-10-08 09:21:58 -04:00
mount.py Fix for creation and removal of swap record in fstab (fixes #42706, #31437 and #30090) (#42837) 2018-07-31 17:09:38 -04:00
nosh.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
ohai.py Fix the docs link to Ohai in the Ohai module (#33788) 2018-03-08 17:00:17 -08:00
open_iscsi.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
openwrt_init.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
osx_defaults.py change OS X to macOS (#41294) 2018-06-26 14:09:23 -04:00
pam_limits.py Adds example of using wildcard domain in pam_limits (#43391) 2018-08-02 17:23:46 +10:00
pamd.py Add definitive to valid_simple_controls in pamd module (#44601) 2018-09-04 11:14:22 -04:00
parted.py Stop throwing TypeErrors (#43036) 2018-07-22 02:31:46 -04:00
ping.py Clarify which ping module to use (#34935) 2018-01-17 14:02:06 +00:00
puppet.py Add additional puppet options (#42218) 2018-07-06 13:52:17 -04:00
python_requirements_facts.py New module: Python Requirements Facts (#43108) 2018-08-21 09:19:10 +10:00
reboot.py Cross-reference win_reboot and reboot (#44784) 2018-08-28 17:10:25 -04:00
runit.py Fixed spelling error in runit module (#35948) 2018-02-10 21:13:55 +05:30
seboolean.py PEP8 fixes: Ansible system module and playbook base.py (#32322) 2017-11-07 09:38:59 +01:00
sefcontext.py sefcontext: Improve documentation (#42416) 2018-07-09 12:13:25 +02:00
selinux.py Fixed check_mode status to be the same as normal execution (#40721) 2018-05-25 17:06:11 -04:00
selinux_permissive.py Clean up BOTMETA.yml (#44574) 2018-08-24 19:43:35 -04:00
seport.py Clean up BOTMETA.yml (#44574) 2018-08-24 19:43:35 -04:00
service.py Mass nuke deprecated items that are easily removed. ci_complete (#44320) 2018-08-20 16:26:10 -05:00
service_facts.py service_facts: Use LC_ALL/LANG=C to run commands (#44474) 2018-08-22 13:27:03 -04:00
setup.py Setup module: use C() formatting function in parameter descriptions, add a task based example (#42411) 2018-07-09 15:08:01 -04:00
solaris_zone.py Clean up BOTMETA.yml (#44574) 2018-08-24 19:43:35 -04:00
svc.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
sysctl.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
systemd.py module/systemd: fix logic determining if a service needs to be enabled (#46245) 2018-09-28 12:05:48 -04:00
sysvinit.py Fix referenced before assignment in sysvinit module (#42695) 2018-08-15 09:59:03 -04:00
timezone.py BSDTimezone: distinguish UTC and Etc/UTC (#41234) 2018-06-11 10:27:50 -04:00
ufw.py "route" has to be the first option in ufw command (#31756) 2018-05-11 16:21:27 +01:00
user.py Properly un expire account on creation (#44174) 2018-08-23 12:29:33 -04:00
vdo.py Surround top-level function and class definitions with two blank lines. 2018-07-31 12:06:56 -07:00
xfconf.py New module: Xfconf-based management of the Xfce 4 DE (#28112) 2018-09-19 18:10:22 -04:00