shibbolet SP role. Some tasks and configuration templates still missing.

This commit is contained in:
Andrea Dell'Amico 2018-08-29 16:25:34 +02:00
parent 4e66797358
commit eb2d0fd3e3
5 changed files with 34 additions and 0 deletions

View File

@ -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

View File

View File

@ -0,0 +1,3 @@
---
dependencies:
- role: '../../library/roles/apache'

View File

@ -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' ]

View File