You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Vlad Mencl 83194a0a99 module/systemd: fix logic determining if a service needs to be enable… (#46318)
* 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 7ea909418e5: 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

(cherry picked from commit ef131c7556)

* backport/2.7/46245: add changelog fragment
6 years ago
..
cli ansible-pull: allow specifying --diff from check_opts cli flag group (#37645) 6 years ago
compat Fix the local and ssh plugins for a cornercase retrying a syscall 6 years ago
config [stable-2.7] Fix issues with PLUGIN_FILTERS_CFG config handling (#45994) 6 years ago
errors give hint to users when a file is not found 7 years ago
executor [2.7] Exclude the whole ansible_failed_task block (#45587) 6 years ago
galaxy [WIP] Backport/2.7/second batch (#45927) 6 years ago
inventory Error on empty group/host name (#42584) 6 years ago
module_utils VMware: Rewrite get_resource_pool method for correct resource_pool selection (#39792) 6 years ago
modules module/systemd: fix logic determining if a service needs to be enable… (#46318) 6 years ago
parsing [stable-2.7] Support nested JSON decoding in AnsibleJSONDecoder (#45924) 6 years ago
playbook Change insertion order of apply block to not affect the include_X task itself (#44912) 6 years ago
plugins Add support for OpenBSD (#46147) 6 years ago
template Remove bare_deprecated functionality (#44517) 6 years ago
utils [stable-2.7] Migrate from MySQLdb to PyMySQL (#40123) 6 years ago
vars [stable-2.7] Ensure loop with delegate_to can short circuit the same as without delegate_to. Fixes #45189 (#45231) 6 years ago
__init__.py
constants.py cisco firepower : Make API endpoints configurable via hostvars (#44952) 6 years ago
release.py Bump version after release so we know when someone runs from a checkout 6 years ago