forked from rciam/rciam-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd4science2samlservers.yml
31 lines (31 loc) · 1.03 KB
/
d4science2samlservers.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: d4science2samlservers.yml
#
---
- name: Deploy D4Science servers
hosts: d4science2saml
roles:
# - { role: apache, tags: apache }
# - { role: php, tags: php }
- { role: ssp, tags: ssp }
- { role: ssp-modules, tags: ssp-modules }
tasks:
# Keycloak provider library version should be a variable.
- name: Install Keycloak Provider library v2.2.2
ansible.builtin.shell: |-
php composer.phar require stevenmaguire/oauth2-keycloak:v2.2.2 \
--ignore-platform-reqs \
--no-interaction \
--no-scripts \
--no-update
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