Documentation

apache2_module - enables/disables a module of the Apache2 webserver

New in version 1.6.

Synopsis

Enables or disables a specified module of the Apache2 webserver.

Requirements (on host that executes module)

  • a2enmod
  • a2dismod

Options

parameter required default choices comments
name
yes
    name of the module to enable/disable
    state
    no present
    • present
    • absent
    indicate the desired state of the resource

    Examples

    # enables the Apache2 module "wsgi"
    - apache2_module: state=present name=wsgi
    
    # disables the Apache2 module "wsgi"
    - apache2_module: state=absent name=wsgi
    

    This is a Core Module

    For more information on what this means please read Core Modules

    For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.