diff --git a/shibbolet-sp-2/defaults/main.yml b/shibbolet-sp-2/defaults/main.yml new file mode 100644 index 00000000..5aafc738 --- /dev/null +++ b/shibbolet-sp-2/defaults/main.yml @@ -0,0 +1,10 @@ +--- +shibbolet_pkg_state: latest +shibbolet_pkg_list: + - shibboleth-sp2-common + - shibboleth-sp2-schemas + - shibboleth-sp2-utils + - curl + +shibbolet_apache_module_pkg: + - libapache2-mod-shib2 diff --git a/shibbolet-sp-2/handlers/main.yml b/shibbolet-sp-2/handlers/main.yml new file mode 100644 index 00000000..e69de29b diff --git a/shibbolet-sp-2/meta/main.yml b/shibbolet-sp-2/meta/main.yml new file mode 100644 index 00000000..22cae95d --- /dev/null +++ b/shibbolet-sp-2/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - role: '../../library/roles/apache' diff --git a/shibbolet-sp-2/tasks/main.yml b/shibbolet-sp-2/tasks/main.yml new file mode 100644 index 00000000..519dd8a9 --- /dev/null +++ b/shibbolet-sp-2/tasks/main.yml @@ -0,0 +1,21 @@ +--- +- 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 }}' + + - 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 }}' + + - name: Enable the apache shib2 module + apache2_module: name=shib2 state=present + notify: apache2 reload + + - name: Create the shibbolet log directory + file: dest=/var/log/shibbolet state=directory owner='_shibd' group='_shibd' + + - name: Ensure that the shibd service is running and enabled + service: name=shibd state=started enabled=yes + + tags: [ 'shibbolet', 'shibbolet_sp' ] diff --git a/shibbolet-sp-2/vars/main.yml b/shibbolet-sp-2/vars/main.yml new file mode 100644 index 00000000..e69de29b