apache2_module – Enables/disables a module of the Apache2 webserver¶
Requirements¶
The below requirements are needed on the host that executes this module.
a2enmod
a2dismod
Parameters¶
Examples¶
# enables the Apache2 module "wsgi"
- apache2_module:
state: present
name: wsgi
# disables the Apache2 module "wsgi"
- apache2_module:
state: absent
name: wsgi
# disable default modules for Debian
- apache2_module:
state: absent
name: autoindex
force: True
# disable mpm_worker and ignore warnings about missing mpm module
- apache2_module:
state: absent
name: mpm_worker
ignore_configcheck: True
# enable dump_io module, which is identified as dumpio_module inside apache2
- apache2_module:
state: present
name: dump_io
identifier: dumpio_module
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Christian Berendt (@berendt)
Ralf Hertel (@n0trax)
Robin Roth (@robinro)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.