infrastructure/roles/keycloak/handlers/main.yml

25 lines
704 B
YAML

- name: Apply new SELinux file context to filesystem.
ansible.builtin.command: "restorecon -irF {{ keycloak_install_dir }}"
become: true
listen: "keycloak selinux context changed"
- name: Restart keycloak service.
ansible.builtin.systemd:
state: restarted
name: keycloak.service
daemon_reload: true
become: true
listen:
- "keycloak service changed"
- "keycloak network changed"
- name: Restart keycloak postgres service.
ansible.builtin.systemd:
state: restarted
name: keycloak-postgres.service
daemon_reload: true
become: true
listen:
- "keycloak postgres service changed"
- "keycloak selinux context changed"
- "keycloak network changed"