refacto: split creation of config files from general update of hydra sp
This commit is contained in:
parent
6ae24ccf81
commit
6c008bb053
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
# Simple task to update the config files of cadoles-pod-shibboleth-sp only.
|
||||
|
||||
- name: Configure cadoles-pod-shibboleth-sp-v3
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode }}"
|
||||
with_items:
|
||||
- src: cadoles-pod-shibboleth-sp-v3.conf.j2
|
||||
dest: /etc/cadoles-pod-shibboleth-sp-v3.conf
|
||||
mode: u=rw,g=r
|
||||
- src: shibboleth-attribute-map.inc.xml.j2
|
||||
dest: /etc/shibboleth/attribute-map.inc.xml
|
||||
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
|
||||
notify:
|
||||
- Restart cadoles-pod-shibboleth-sp-v3
|
||||
become: true
|
|
@ -8,21 +8,5 @@
|
|||
state: present
|
||||
become: true
|
||||
|
||||
- name: Configure cadoles-pod-shibboleth-sp-v3
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: "{{ item.mode }}"
|
||||
with_items:
|
||||
- src: cadoles-pod-shibboleth-sp-v3.conf.j2
|
||||
dest: /etc/cadoles-pod-shibboleth-sp-v3.conf
|
||||
mode: u=rw,g=r
|
||||
- src: shibboleth-attribute-map.inc.xml.j2
|
||||
dest: /etc/shibboleth/attribute-map.inc.xml
|
||||
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
|
||||
notify:
|
||||
- Restart cadoles-pod-shibboleth-sp-v3
|
||||
become: true
|
||||
- name: Configure hydra SP
|
||||
ansible.builtin.include_tasks: configure-hydra-sp.yml
|
||||
|
|
Loading…
Reference in New Issue