geerlingguy/ansible-role-apache

apache_state is not respected by the restart handler

matiasba opened this issue · 1 comments

When trying to use this module to install apache2 and leave it in a disabled and stopped state I found that the restart event handler uses a variable which is not documented, called apache_restart_state which defaults to "restarted". Thus overriding the value of apache_state.
I think that the restart handler should not run if apache_state is "stopped".

I hit this just now.