diff --git a/shibbolet-sp-2/defaults/main.yml b/shibbolet-sp-2/defaults/main.yml index 5aafc73..e61f17b 100644 --- a/shibbolet-sp-2/defaults/main.yml +++ b/shibbolet-sp-2/defaults/main.yml @@ -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 diff --git a/shibbolet-sp-2/tasks/main.yml b/shibbolet-sp-2/tasks/main.yml index 519dd8a..f20e8a0 100644 --- a/shibbolet-sp-2/tasks/main.yml +++ b/shibbolet-sp-2/tasks/main.yml @@ -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