feat: modularize playbook with tags

This commit is contained in:
2023-10-25 11:38:08 +02:00
parent 2b4e669cc3
commit 547eb73d6c
5 changed files with 81 additions and 28 deletions

View File

@ -4,36 +4,42 @@
name: haproxy
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-hydra-v1
service:
name: cadoles-pod-hydra-v1
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-hydra-dispatcher-v1
service:
name: cadoles-pod-hydra-dispatcher-v1
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-hydra-passwordless-v1
service:
name: cadoles-pod-hydra-passwordless-v1
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-hydra-remote-user-v1
service:
name: cadoles-pod-hydra-remote-user-v1
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-shibboleth-sp-v3
service:
name: cadoles-pod-shibboleth-sp-v3
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-hydra-oidc-v1
service:
@ -46,13 +52,16 @@
name: cadoles-pod-hydra-ldap-v1
state: restarted
become: true
when: not install_only
- name: Restart cadoles-pod-goweb-oidc-v1
service:
name: cadoles-pod-goweb-oidc-v1
state: restarted
become: true
when: not install_only
- name: Reload hydra clients
ansible.builtin.include_tasks:
file: hydra-reload-clients.yml
when: not install_only