forked from ISTI-ansible-roles/ansible-roles
library/roles/apache: Do not install the mpm worker package if the PPA is enabled
This commit is contained in:
parent
97e71b765a
commit
025b36ed2d
|
@ -10,12 +10,14 @@ apache_mpm_mode: worker
|
||||||
|
|
||||||
apache_packages:
|
apache_packages:
|
||||||
- apache2
|
- apache2
|
||||||
- 'apache2-mpm-{{ apache_mpm_mode }}'
|
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
- libapache2-mod-xsendfile
|
- libapache2-mod-xsendfile
|
||||||
- unzip
|
- unzip
|
||||||
- zip
|
- zip
|
||||||
|
|
||||||
|
apache_modules_packages:
|
||||||
|
- 'apache2-mpm-{{ apache_mpm_mode }}'
|
||||||
|
|
||||||
# Only one can be present at the same time. It needs to be listed as the last one
|
# Only one can be present at the same time. It needs to be listed as the last one
|
||||||
apache_worker_modules:
|
apache_worker_modules:
|
||||||
# - { name: 'mpm_itm', state: 'absent' }
|
# - { name: 'mpm_itm', state: 'absent' }
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
with_items: '{{ apache_packages }}'
|
with_items: '{{ apache_packages }}'
|
||||||
tags: [ 'apache', 'apache_main_packages' ]
|
tags: [ 'apache', 'apache_main_packages' ]
|
||||||
|
|
||||||
- name: Install the apache additional packages, if any
|
- name: Install the apache modules packages
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=installed
|
||||||
with_items: '{{ apache_additional_packages_list }}'
|
with_items: '{{ apache_modules_packages }}'
|
||||||
when: apache_additional_packages
|
when: not apache_from_ppa
|
||||||
tags: [ 'apache', 'apache_additional_packages' ]
|
tags: [ 'apache', 'apache_additional_packages' ]
|
||||||
|
|
||||||
# - name: Load the required worker module
|
# - name: Load the required worker module
|
||||||
|
@ -25,6 +25,12 @@
|
||||||
# ignore_errors: True
|
# ignore_errors: True
|
||||||
# tags: [ 'apache', 'apache_modules' ]
|
# tags: [ 'apache', 'apache_modules' ]
|
||||||
|
|
||||||
|
- name: Install the apache additional packages, if any
|
||||||
|
apt: pkg={{ item }} state=installed
|
||||||
|
with_items: '{{ apache_additional_packages_list }}'
|
||||||
|
when: apache_additional_packages
|
||||||
|
tags: [ 'apache', 'apache_additional_packages' ]
|
||||||
|
|
||||||
- name: Remove the default virtualhost file
|
- name: Remove the default virtualhost file
|
||||||
file: dest=/etc/apache2/sites-enabled/{{ item }} state=absent
|
file: dest=/etc/apache2/sites-enabled/{{ item }} state=absent
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Reference in New Issue