From 992b9aeef4eae8f81e0e81fff5f318489388d1ec Mon Sep 17 00:00:00 2001 From: mrekucci Date: Fri, 28 Jun 2024 16:23:22 +0200 Subject: [PATCH] refactor: link meta.json to artifacts --- infrastructure/nomad/playbooks/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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