Debug molecule in gh workflow

main
Guido Grazioli 2021-12-14 13:21:03 +01:00
parent 4a6b0e299c
commit d90c9685c4
1 changed files with 17 additions and 6 deletions

View File

@ -38,12 +38,23 @@
daemon_reload: yes
when: systemdunit.changed
- name: start keycloak
- block:
- name: start keycloak
systemd:
name: keycloak
enabled: yes
state: started
become: yes
rescue:
- command: "systemctl status keycloak"
changed_when: False
ignore_errors: True
- command: "journalctl -xe -ukeycloak"
changed_when: False
ignore_errors: True
- command: "tail -n 100 /opt/keycloak/keycloak.log"
changed_when: False
ignore_errors: True
- command: "systemctl status keycloak"
register: keycloak_service_status