def module_disabled(module): """ Ensure link to /etc/apache2/mods-available/module doesn't exist and reload apache2 configuration if needed. """ disable_module(module) reload_service('apache2')
def module_disabled(module): """ Require an Apache module to be disabled. This will cause Apache to reload its configuration. :: from fabtools import require require.apache.module_disabled('rewrite') """ disable_module(module) reload_service('apache2')