Ansible-role-apache: apache_mods_enabled ignores dependencies (eg for mod_ssl)

Created on 22 Sep 2017  ·  13Comments  ·  Source: geerlingguy/ansible-role-apache

My experience is based on a Debian/Ubuntu setup.

The naive expectation of the apache_mods_enabled configuration variable is that it will function similar to a2enmod, which will typically symlink modules to enable them.

Problem is that for more complex modules this is not sufficient.

In my specific case the ssl module fails to properly load when specifying it as ssl.load like in the example.

a2enmod would also evaluate dependencies listed in ssl.load, resulting in enabling additional modules like socache_shmcb. It would also link the ssl.conf file which brings in required configuration settings.

# Depends: setenvif mime socache_shmcb
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so

My expectation would be that the role internally use apache2_module to enable the roles which takes care of the mentioned specialties.

stale

All 13 comments

Please let me know if Debian/Ubuntu is not part of your typical test setup, so I could try to come up with a pull request to address this.

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

I believe this issue is still recent and the pull request still valid. Is there anythin I can support on moving this forward?

This issue is no longer marked for closure.

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

see pull request #193 to fix this issue.

This issue is no longer marked for closure.

can't wait for the merge of your PR :-)

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

pr is still there. Any issue why not merging?

This issue is no longer marked for closure.

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

Was this page helpful?
0 / 5 - 0 ratings