shibbolet sp role: support trusty.

This commit is contained in:
Andrea Dell'Amico 2018-10-25 17:03:34 +02:00
parent 6dc148a855
commit 82b6fe1eff
2 changed files with 11 additions and 4 deletions

View File

@ -6,5 +6,9 @@ shibbolet_pkg_list:
- shibboleth-sp2-utils
- curl
shibbolet_pkg_list_trusty:
- shibboleth-sp2-schemas
- curl
shibbolet_apache_module_pkg:
- libapache2-mod-shib2

View File

@ -1,12 +1,15 @@
---
- block:
- name: Install the shibbolet packages
apt: pkg={{ item }} state={{ shibbolet_pkg_state }} cache_valid_time=1800 update_cache=yes
with_items: '{{ shibbolet_pkg_list }}'
apt: pkg={{ shibbolet_pkg_list }} state={{ shibbolet_pkg_state }} cache_valid_time=1800 update_cache=yes
when: is_not_trusty
- name: Install the shibbolet packages on Trusty
apt: pkg={{ shibbolet_pkg_list_trusty }} state={{ shibbolet_pkg_state }} cache_valid_time=1800 update_cache=yes
when: is_not_trusty
- name: Install the shibbolet apache module
apt: pkg={{ item }} state={{ shibbolet_pkg_state }} cache_valid_time=1800 update_cache=yes
with_items: '{{ shibbolet_apache_module_pkg }}'
apt: pkg={{ shibbolet_apache_module_pkg }} state={{ shibbolet_pkg_state }} cache_valid_time=1800 update_cache=yes
- name: Enable the apache shib2 module
apache2_module: name=shib2 state=present