2022-07-19 14:26:08 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install cadoles-pod-hydra-remote-user-v1 package
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
2022-07-21 14:19:23 +02:00
|
|
|
- "cadoles-pod-shibboleth-sp-v3={{ cadoles_pod_shibboleth_sp_v3_package_version }}"
|
|
|
|
- "cadoles-pod-hydra-remote-user-v1={{ cadoles_pod_hydra_remote_user_v1_package_version }}"
|
2022-07-19 14:26:08 +02:00
|
|
|
update_cache: yes
|
2022-07-21 14:19:23 +02:00
|
|
|
state: present
|
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 }}"
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: "{{ item.mode }}"
|
2022-07-19 14:26:08 +02:00
|
|
|
with_items:
|
|
|
|
- src: cadoles-pod-hydra-remote-user-v1.conf.j2
|
|
|
|
dest: /etc/cadoles-pod-hydra-remote-user-v1.conf
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: u=rw,g=r
|
2022-07-19 14:26:08 +02:00
|
|
|
- src: hydra-remote-user.yml.j2
|
|
|
|
dest: /etc/hydra-remote-user/conf.d/remote-user.yml
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: u=rw,g=r,o=r
|
2022-07-19 14:26:08 +02:00
|
|
|
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:
|
2024-07-12 16:51:29 +02:00
|
|
|
src: "{{ item.src }}"
|
|
|
|
dest: "{{ item.dest }}"
|
|
|
|
with_items:
|
|
|
|
- src: hydra-remote-user-v1-apache.conf
|
|
|
|
dest: /etc/hydra-remote-user/apache.conf
|
|
|
|
- src: mpm_prefork.conf
|
|
|
|
dest: /etc/hydra-remote-user/mpm_prefork.conf
|
2022-07-19 14:26:08 +02:00
|
|
|
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 }}"
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: "{{ item.mode }}"
|
2022-07-19 14:26:08 +02:00
|
|
|
with_items:
|
|
|
|
- src: cadoles-pod-shibboleth-sp-v3.conf.j2
|
|
|
|
dest: /etc/cadoles-pod-shibboleth-sp-v3.conf
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: u=rw,g=r,o=r
|
2022-07-19 14:26:08 +02:00
|
|
|
- src: shibboleth-attribute-map.inc.xml.j2
|
|
|
|
dest: /etc/shibboleth/attribute-map.inc.xml
|
2022-08-03 21:06:02 +02:00
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- src: shibboleth-attribute-policy.inc.xml.j2
|
|
|
|
dest: /etc/shibboleth/attribute-policy.inc.xml
|
|
|
|
mode: u=rw,g=r,o=r
|
2022-07-19 14:26:08 +02:00
|
|
|
notify:
|
|
|
|
- Restart cadoles-pod-shibboleth-sp-v3
|
2023-02-10 09:39:43 +01:00
|
|
|
become: true
|