-
Notifications
You must be signed in to change notification settings - Fork 16
/
identity_provider.yml
40 lines (34 loc) · 1.05 KB
/
identity_provider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
- name: Make sure Python2 is available
hosts: idp
become: True
gather_facts: False
tasks:
- raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
- name: Gather OS specific variables
hosts: idp
become: True
gather_facts: True
tasks:
- include_vars: "{{ item }}"
with_first_found:
- "group_vars/distributions/{{ ansible_distribution }}-{{ ansible_distribution_major_version}}.yml"
- "group_vars/distributions/{{ ansible_distribution }}-{{ ansible_distribution_release}}.yml"
- "group_vars/distributions/{{ ansible_distribution }}.yml"
tags: vars
- name: Install Shibboleth IdP v3 for UbuntuNet Alliance
hosts: idp
become: True
vars_files:
- group_vars/secrets.yml
roles:
- webserver
- db
- appserver
- idp
handlers:
- name: restart apache
service: name=apache2 state=restarted
- name: restart tomcat
service: name=tomcat{{ tomcat.version }} state=restarted
- name: restart postgres
service: name=postgresql state=restarted