library/roles/apache: Install the latest version by default.

This commit is contained in:
Andrea Dell'Amico 2017-02-02 15:04:39 +01:00
parent 025b36ed2d
commit 375c240a2b
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
---
apache_service_enabled: True
apache_user: www-data
apache_pkg_state: latest
apache_group: '{{ apache_user }}'
apache_from_ppa: False
apache_ppa_repo: 'ppa:ondrej/apache2'

View File

@ -1,11 +1,11 @@
---
- name: Install the apache packages
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state={{ apache_pkg_state }} update_cache=yes cache_valid_time=3600
with_items: '{{ apache_packages }}'
tags: [ 'apache', 'apache_main_packages' ]
- name: Install the apache modules packages
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state={{ apache_pkg_state }} update_cache=yes cache_valid_time=3600
with_items: '{{ apache_modules_packages }}'
when: not apache_from_ppa
tags: [ 'apache', 'apache_additional_packages' ]
@ -26,7 +26,7 @@
# tags: [ 'apache', 'apache_modules' ]
- name: Install the apache additional packages, if any
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state={{ apache_pkg_state }} update_cache=yes cache_valid_time=3600
with_items: '{{ apache_additional_packages_list }}'
when: apache_additional_packages
tags: [ 'apache', 'apache_additional_packages' ]