diff --git a/infrastructure/nomad/playbooks/deploy.yml b/infrastructure/nomad/playbooks/deploy.yml index dc675d9af..dc24997c6 100644 --- a/infrastructure/nomad/playbooks/deploy.yml +++ b/infrastructure/nomad/playbooks/deploy.yml @@ -556,9 +556,9 @@ when: build_templates - name: Create "meta.json" - copy: - content: "{{ environments[env] | to_json }}" - dest: "{{ ansible_env.HOME }}/{{ env }}/meta.json" + ansible.builtin.shell: | + echo '{{ environments[env] | to_json }}' > {{ ansible_env.HOME }}/{{ env }}/meta.json + ln -f {{ ansible_env.HOME }}/{{ env }}/meta.json {{ ansible_env.HOME }}/{{ env }}/artifacts/meta.json when: build_templates - name: Purge Cluster