New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache Enable Module... Module fails if already enabled #22635
Comments
@theshades Thanks for this bug report. Which OS/version are you using? I can reproduce the issue with ubuntu 16.04. The reason is that This problem is similar to I'd ask you to file a bug report against the distribution that you are using and ask them to fix that output, since it obviously deviates from the default that the vast majority of modules (and all others that you use) follow. Please link to that bug report here. We could construct a workaround here, like in #20341. I'm not really happy with that, but we starting to go down the "workaround" road and there is no good argument why to stop now. @n0trax What's your view on that? |
@theshades Thanks for this bug report. I can reproduce this issue too... @robinro I agree with you. |
* Fixes ansible#22635 * Clean up workarounds for php/shib * Add test for evasive workaround * Remove use of re module, since all searches work with native python
I openes a PR #22649 to fix this and run it in the integration tests. @theshades Please test whether this fix works for you. @n0trax I startes a list of searches/replacements to better organize our workarounds. Please comment on that. I got rid of the use of the |
* Add workaround for evasive in apache2_module * Fixes #22635 * Clean up workarounds for php/shib * Add test for evasive workaround * Remove use of re module, since all searches work with native python * Add unit tests to apache2_module name replacements Go back to using re package where needed * Rename replace_name to create_apache_identifier
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release, and master branch are affected too.
ISSUE TYPE
COMPONENT NAME
http://docs.ansible.com/ansible/apache2_module_module.html
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
Ansible apache module fails if evasive is already enabled, only seems to be evasive.
STEPS TO REPRODUCE
https://github.com/ShadeySecurity/pyAssetContext/blob/master/playbooks/install-pyAssetContext.yml
EXPECTED RESULTS
I expected an ok / no change
ACTUAL RESULTS
Failed due to already existing
The text was updated successfully, but these errors were encountered: