middleware_automation.keycloak/roles/keycloak_quarkus/tasks/systemd.yml
Guido Grazioli 3b1534d700 refactor
2024-03-25 10:19:28 +01:00

25 lines
639 B
YAML

---
- name: "Configure sysconfig file for {{ keycloak.service_name }} service"
become: true
ansible.builtin.template:
src: keycloak-sysconfig.j2
dest: "{{ keycloak_quarkus_sysconf_file }}"
owner: root
group: root
mode: 0644
vars:
keycloak_pkg_java_home: "{{ keycloak_quarkus_pkg_java_home }}"
notify:
- restart keycloak
- name: "Configure systemd unit file for keycloak service"
ansible.builtin.template:
src: keycloak.service.j2
dest: /etc/systemd/system/keycloak.service
owner: root
group: root
mode: 0644
become: true
register: systemdunit
notify:
- restart keycloak