![Clark Boylan](/assets/img/avatar_default.png)
This handler used an incorrect path to the docker-compose file and failed with no such file or directory errors. Update the handler to use the correct path to the docker-compose file. I also add a note that the check to avoid restarts when we just restarted containers may not be working as we did restart at least the mariadb container which is how I discovered this issue. Change-Id: If004b72e3efc0d0d4665c6fd56e514a5cb6191c5
18 lines
713 B
YAML
18 lines
713 B
YAML
- name: keycloak check for running containers
|
|
command: pgrep -f quarkus
|
|
ignore_errors: yes
|
|
register: quarkus_pids
|
|
|
|
- name: keycloak restart containers if running
|
|
# Also makes sure the containers weren't just restarted by an image update
|
|
# TODO(clarkb) the check that we weren't just restarted by an image update
|
|
# doesn't seem to work possibly due to our pin on the keycloak version.
|
|
when: quarkus_pids.rc == 0 and "is up-to-date" in keycloak_dcup.stderr
|
|
block:
|
|
- name: down containers
|
|
shell:
|
|
cmd: docker-compose -f /etc/keycloak-docker/docker-compose.yaml down
|
|
- name: up containers
|
|
shell:
|
|
cmd: docker-compose -f /etc/keycloak-docker/docker-compose.yaml up -d
|