community.general.apache2_module – Enables/disables a module of the Apache2 webserver.¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.apache2_module
.
Requirements¶
The below requirements are needed on the host that executes this module.
a2enmod
a2dismod
Parameters¶
Examples¶
- name: Enable the Apache2 module wsgi
community.general.apache2_module:
state: present
name: wsgi
- name: Disables the Apache2 module wsgi
community.general.apache2_module:
state: absent
name: wsgi
- name: Disable default modules for Debian
community.general.apache2_module:
state: absent
name: autoindex
force: True
- name: Disable mpm_worker and ignore warnings about missing mpm module
community.general.apache2_module:
state: absent
name: mpm_worker
ignore_configcheck: True
- name: Enable dump_io module, which is identified as dumpio_module inside apache2
community.general.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:
Authors¶
Christian Berendt (@berendt)
Ralf Hertel (@n0trax)
Robin Roth (@robinro)