forked from ISTI-ansible-roles/ansible-roles
library/roles/apache: Add the possibility to install a newer apache package from an Ubuntu PPA.
This commit is contained in:
parent
21dbb22b48
commit
c61e8fe767
|
@ -2,6 +2,8 @@
|
|||
apache_service_enabled: True
|
||||
apache_user: www-data
|
||||
apache_group: '{{ apache_user }}'
|
||||
apache_from_ppa: False
|
||||
apache_ppa_repo: 'ppa:ondrej/apache2'
|
||||
|
||||
# Possible choices: event, prefork (the old ones), worker (the threaded version), itm
|
||||
apache_mpm_mode: worker
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the Ubuntu apache PPA
|
||||
apt_repository: repo='{{ apache_ppa_repo }}' update_cache=yes
|
||||
|
||||
when: apache_from_ppa
|
||||
tags: [ 'apache', 'apache_ppa' ]
|
||||
|
||||
- block:
|
||||
- name: Remove the Ubuntu apache PPA
|
||||
apt_repository: repo='{{ apache_ppa_repo }}' update_cache=yes state=absent
|
||||
|
||||
when: not apache_from_ppa
|
||||
tags: [ 'apache', 'apache_ppa' ]
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
- include: apache-ppa.yml
|
||||
- include: apache.yml
|
||||
- include: apache-modules.yml
|
||||
- include: apache-basic-auth.yml
|
||||
|
|
Loading…
Reference in New Issue