You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to disable the cgi module while running in mpm_event module will result in a failure, even when cgi module is already disabled.
Disabling the cgi module with community.general.apache2_module will fail with the error message Your MPM seems to be threaded. No automatic actions on module cgi possible.. Doing the same on the commandline with a2dismod cgi will result with the correct messaage cgi is already disabled.
In additional, the ignore_configcheck parameter gets ignored, cause the cgi detection hits earlier
Just to be on the safe side, could you please repeat the test in the latest (or a more recent) version of the collection? Version 7.x is no longer supported - latest one is 10.x already. Thanks!
@russoz I can try to setup a test environment, but since I compared the HEAD code and the mentioned line with the one at 7.x I don’t expect many differences. In the head code the module execution stops before doing any other evaluation. I’ll let you know
Summary
Trying to disable the cgi module while running in mpm_event module will result in a failure, even when cgi module is already disabled.
Disabling the
cgi
module withcommunity.general.apache2_module
will fail with the error messageYour MPM seems to be threaded. No automatic actions on module cgi possible.
. Doing the same on the commandline witha2dismod cgi
will result with the correct messaagecgi is already disabled
.In additional, the
ignore_configcheck
parameter gets ignored, cause the cgi detection hits earlierCode:
github.com/ansible-collections/community.general/blob/626c0e104975f2bfe1c85e8816f4b64594e06bed//plugins/modules/apache2_module.py#L285-L287)
Possible solutions:
a2query -m
if the module in question is already enabled (this is our current workaround)state: present
notabsent
since the problem happens only when enabling cgi module in threaded mode not the other wayignore_configcheck
is setIssue Type
Bug Report
Component Name
apache2_module
Ansible Version
Community.general Version
But the bug is also present in the current HEAD of community.general cause all operation on cgi are not allowed when threaded module is detected.
Configuration
No response
OS / Environment
Debian 11 and Debian 12
Steps to Reproduce
Expected Results
Result should be
OK
notFAILED
since the module is already disabledActual Results
"Your MPM seems to be threaded. No automatic actions on module cgi possible."
Code of Conduct
The text was updated successfully, but these errors were encountered: