mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 05:04:22 -07:00
apache2_module: updated cgi action conditions
Only the activation of the cgi module in threaded mode should be a restriction due to apache2 limitations, not the deactivation. Especially when the cgi module isn't enabled yet at all. Fixes #9140 * bug(fix): apache2_module fails to disable cgi module
This commit is contained in:
parent
77cd018427
commit
cfc55b1763
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ def main():
|
||||||
module.warnings = []
|
module.warnings = []
|
||||||
|
|
||||||
name = module.params['name']
|
name = module.params['name']
|
||||||
if name == 'cgi' and _run_threaded(module):
|
if name == 'cgi' and module.params['state'] == 'present' and _run_threaded(module):
|
||||||
module.fail_json(msg="Your MPM seems to be threaded. No automatic actions on module cgi possible.")
|
module.fail_json(msg="Your MPM seems to be threaded. No automatic actions on module cgi possible.")
|
||||||
|
|
||||||
if not module.params['identifier']:
|
if not module.params['identifier']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue