fix(keycloak): container recreation needs to check if variable is defined and not just truthy

This commit is contained in:
Johanna Dorothea Reichmann 2023-12-17 21:25:43 +01:00
parent b77cee1202
commit 94df7b611e
Signed by: transcaffeine
GPG key ID: 03624C433676E465

View file

@ -51,7 +51,7 @@
labels: "{{ keycloak_container_labels | default(omit, true) }}"
volumes: "{{ keycloak_container_volumes | default(omit, true) }}"
restart_policy: "{{ keycloak_container_restart_policy }}"
recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status else false) }}"
recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status is defined else false) }}"
state: started
command: >-2
start