|
|
|
|
|
|
|
|
- require: |
|
|
- require: |
|
|
- pkg: apache |
|
|
- pkg: apache |
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- module: apache_restart |
|
|
|
|
|
|
|
|
- module: apache-restart |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/apache2/mods-available/{{ mpm_module }}.conf |
|
|
- name: /etc/apache2/mods-available/{{ mpm_module }}.conf |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
|
|
|
|
|
|
- require: |
|
|
- require: |
|
|
- pkg: apache |
|
|
- pkg: apache |
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- module: apache_restart |
|
|
|
|
|
|
|
|
- module: apache-restart |
|
|
|
|
|
|
|
|
# Deactivate the other mpm modules as a previous step |
|
|
# Deactivate the other mpm modules as a previous step |
|
|
{% for mod in ['mpm_prefork', 'mpm_worker', 'mpm_event'] if not mod == mpm_module %} |
|
|
{% for mod in ['mpm_prefork', 'mpm_worker', 'mpm_event'] if not mod == mpm_module %} |
|
|
|
|
|
|
|
|
- require_in: |
|
|
- require_in: |
|
|
- cmd: a2enmod {{ mpm_module }} |
|
|
- cmd: a2enmod {{ mpm_module }} |
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- module: apache_restart |
|
|
|
|
|
|
|
|
- module: apache-restart |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |