diff --git a/tasks/configure-hydra-sp.yml b/tasks/configure-hydra-sp.yml new file mode 100644 index 0000000..49b9f32 --- /dev/null +++ b/tasks/configure-hydra-sp.yml @@ -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 diff --git a/tasks/update-hydra-sp.yml b/tasks/update-hydra-sp.yml index 0086e36..7bacf28 100644 --- a/tasks/update-hydra-sp.yml +++ b/tasks/update-hydra-sp.yml @@ -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