forked from rciam/rciam-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deep2samlservers.yml
31 lines (31 loc) · 1006 Bytes
/
deep2samlservers.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
# file: deep2samlservers.yml
#
---
- name: Provision Deep2saml servers
hosts: deep2saml
roles:
# - { role: apache, tags: apache }
# - { role: php, tags: php }
- { role: ssp, tags: ssp }
- { role: ssp-modules, tags: ssp-modules }
tasks:
- name: Install SSP mod authoauth2 v3.1.0
ansible.builtin.shell: >
set -o pipefail
php composer.phar \
require cirrusidentity/simplesamlphp-module-authoauth2:v3.1.0 \
--ignore-platform-reqs \
--no-interaction \
--no-scripts
args:
chdir: "{{ ssp_path }}/"
executable: /bin/bash
register: composer_results
changed_when: composer_results is changed and "Nothing to install, update or remove" not in composer_results.stderr
when: ssp_mods_extra_enabled | selectattr('name', 'equalto', 'authoauth2') | list | count > 0
become: true
tags:
- install
- ssp:install
- ssp:install:mods
- ssp-modules:install