2022-07-19 14:26:08 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install cadoles-pod-hydra-remote-user-v1 package
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- cadoles-pod-shibboleth-sp-v3
|
|
|
|
- cadoles-pod-hydra-remote-user-v1
|
|
|
|
update_cache: yes
|
|
|
|
state: latest
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
2022-07-19 14:26:08 +02:00
|
|
|
|
|
|
|
- name: Configure cadoles-pod-hydra-remote-user-v1
|
|
|
|
template:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
|
|
|
- src: cadoles-pod-hydra-remote-user-v1.conf.j2
|
|
|
|
dest: /etc/cadoles-pod-hydra-remote-user-v1.conf
|
|
|
|
- src: hydra-remote-user.yml.j2
|
|
|
|
dest: /etc/hydra-remote-user/conf.d/remote-user.yml
|
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-hydra-remote-user-v1
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
2022-07-19 14:26:08 +02:00
|
|
|
|
|
|
|
- name: Configure cadoles-pod-hydra-remote-user-v1 (2)
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: hydra-remote-user-v1-apache.conf
|
|
|
|
dest: /etc/hydra-remote-user/apache.conf
|
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-hydra-remote-user-v1
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
2022-07-19 14:26:08 +02:00
|
|
|
|
|
|
|
- name: Create cadoles-pod-shibboleth-sp-v3 expected directories
|
|
|
|
file:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- /etc/shibboleth
|
|
|
|
- /etc/shibboleth/credentials
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
2022-07-19 14:26:08 +02:00
|
|
|
|
|
|
|
- name: Configure cadoles-pod-shibboleth-sp-v3
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
|
|
|
- src: cadoles-pod-shibboleth-sp-v3.conf.j2
|
|
|
|
dest: /etc/cadoles-pod-shibboleth-sp-v3.conf
|
|
|
|
- src: shibboleth-attribute-map.inc.xml.j2
|
|
|
|
dest: /etc/shibboleth/attribute-map.inc.xml
|
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-shibboleth-sp-v3
|
2022-07-21 10:04:17 +02:00
|
|
|
become: true
|
2022-07-19 14:26:08 +02:00
|
|
|
|
|
|
|
- name: Configure cadoles-pod-shibboleth-sp-v3 (2)
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: shibboleth2.xml.gotmpl
|
|
|
|
dest: /etc/shibboleth/shibboleth2.xml.gotmpl
|
|
|
|
notify:
|
2022-07-21 10:04:17 +02:00
|
|
|
- Restart cadoles-pod-shibboleth-sp-v3
|
|
|
|
become: true
|