mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-31 09:01:32 -07:00
Move envvars to /etc/defaults
This commit is contained in:
parent
e14220a01b
commit
210d3ebf4d
4 changed files with 28 additions and 7 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
- include_tasks: tasks/install.yml
|
||||
|
||||
## FIXME not idempotent (keyclock removes the file when it restarts)
|
||||
- name: create Keycloak admin user
|
||||
command:
|
||||
args:
|
||||
|
|
|
@ -38,12 +38,30 @@
|
|||
daemon_reload: yes
|
||||
when: systemdunit.changed
|
||||
|
||||
- name: start keycloak
|
||||
systemd:
|
||||
name: keycloak
|
||||
enabled: yes
|
||||
state: started
|
||||
become: yes
|
||||
- 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
|
||||
- debug:
|
||||
msg: "Virt type: {{ ansible_facts.virtualization_type }}"
|
||||
changed_when: False
|
||||
ignore_errors: True
|
||||
- command: "cat /opt/keycloak/keycloak-service.sh"
|
||||
changed_when: False
|
||||
ignore_errors: True
|
||||
|
||||
- command: "systemctl status keycloak"
|
||||
register: keycloak_service_status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue