diff --git a/ansible/roles/tldraw-client-core/tasks/main.yml b/ansible/roles/tldraw-client-core/tasks/main.yml index 8afef3cb..bd3e9fd0 100644 --- a/ansible/roles/tldraw-client-core/tasks/main.yml +++ b/ansible/roles/tldraw-client-core/tasks/main.yml @@ -3,7 +3,7 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: tldraw-client-svc.yml.j2 - when: WITH_TLDRAW is defined and WITH_TLDRAW|bool or WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool tags: - service @@ -13,7 +13,7 @@ namespace: "{{ NAMESPACE }}" template: tldraw-client-configmap.yml.j2 apply: yes - when: WITH_TLDRAW is defined and WITH_TLDRAW|bool or WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool tags: - configmap @@ -22,7 +22,7 @@ kubeconfig: ~/.kube/config namespace: "{{ NAMESPACE }}" template: tldraw-client-deployment.yml.j2 - when: WITH_TLDRAW is defined and WITH_TLDRAW|bool or WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool tags: - deployment @@ -32,6 +32,6 @@ namespace: "{{ NAMESPACE }}" template: tldraw-client-ingress.yml.j2 apply: yes - when: WITH_TLDRAW is defined and WITH_TLDRAW|bool or WITH_TLDRAW2 is defined and WITH_TLDRAW2|bool + when: WITH_TLDRAW is defined and WITH_TLDRAW|bool tags: - ingress \ No newline at end of file diff --git a/ansible/roles/tldraw-client-core/templates/tldraw-client-configmap.yml.j2 b/ansible/roles/tldraw-client-core/templates/tldraw-client-configmap.yml.j2 index 03361093..ba1767fb 100644 --- a/ansible/roles/tldraw-client-core/templates/tldraw-client-configmap.yml.j2 +++ b/ansible/roles/tldraw-client-core/templates/tldraw-client-configmap.yml.j2 @@ -9,4 +9,4 @@ data: NODE_ENV: "production" TZ: "Europe/Berlin" PORT: "3046" - CONFIG_PATH: "{{ '/api/tldraw/config/public' if WITH_TLDRAW2 else '/api/v3/config/public' }}" + CONFIG_PATH: "/api/v3/config/public"