community / community.general / 1.3.11 / module / apache2_module Enables/disables a module of the Apache2 webserver. Authors: Christian Berendt (@berendt), Ralf Hertel (@n0trax), Robin Roth (@robinro)community.general.apache2_module (1.3.11) — module
Install with ansible-galaxy collection install community.general:==1.3.11
collections: - name: community.general version: 1.3.11
Enables or disables a specified module of the Apache2 webserver.
- 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
name: description: - Name of the module to enable/disable as given to C(a2enmod/a2dismod). required: true type: str force: default: false description: - Force disabling of default modules and override Debian warnings. required: false type: bool state: choices: - present - absent default: present description: - Desired state of the module. type: str identifier: description: - Identifier of the module as listed by C(apache2ctl -M). This is optional and usually determined automatically by the common convention of appending C(_module) to I(name) as well as custom exception for popular modules. required: false type: str ignore_configcheck: default: false description: - Ignore configuration checks about inconsistent module configuration. Especially for mpm_* modules. type: bool
rc: description: return code of underlying command returned: failed type: int result: description: message about action taken returned: always type: str stderr: description: stderr of underlying command returned: failed type: str stdout: description: stdout of underlying command returned: failed type: str warnings: description: list of warning messages returned: when needed type: list