mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 06:21:43 -07:00
[PR #10423/735a066d backport][stable-10] apache2_module: updated cgi action conditions (#10681)
apache2_module: updated cgi action conditions (#10423)
* 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
* Update changelog fragment.
---------
(cherry picked from commit 735a066d92
)
Co-authored-by: Daniel Hoffend <dh@dotlan.net>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
46790b3dcb
commit
31f1b9a7c7
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/10423-apache_module-condition.yml
Normal file
2
changelogs/fragments/10423-apache_module-condition.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- apache2_module - check the ``cgi`` module restrictions only during activation (https://github.com/ansible-collections/community.general/pull/10423).
|
|
@ -258,8 +258,8 @@ def main():
|
|||
)
|
||||
|
||||
name = module.params['name']
|
||||
if name == 'cgi' and _run_threaded(module):
|
||||
module.fail_json(msg="Your MPM seems to be threaded. No automatic actions on module cgi possible.")
|
||||
if name == 'cgi' and module.params['state'] == 'present' and _run_threaded(module):
|
||||
module.fail_json(msg="Your MPM seems to be threaded, therefore enabling cgi module is not allowed.")
|
||||
|
||||
if not module.params['identifier']:
|
||||
module.params['identifier'] = create_apache_identifier(module.params['name'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue