W3cubDocs

/Ansible

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
force
(added in 2.1)
no
  • yes
  • no
force disabling of default modules and override Debian warnings
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, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/apache2_module_module.html