bugfix: Set git folder for recording repo shas
[infra/stack/kubernetes.git] / playbooks / roles / package / tasks / record-shas.yaml
index 36501bd82e50c876a1067b658960727e93e38c46..ffe5351dd1bffd3d8a8227616308be9d374c82e6 100644 (file)
@@ -30,7 +30,7 @@
     - engine-bifrost
     - engine
   args:
     - engine-bifrost
     - engine
   args:
-    chdir: "/tmp/autorelease/git/{{ item }}"
+    chdir: "{{ git_folder }}/{{ item }}"
   changed_when: false
 
 - name: Populate dictionary to map repos to shas
   changed_when: false
 
 - name: Populate dictionary to map repos to shas
     repos_shas: "{{ repos_shas|default({}) | combine( {item.item | upper | replace('-', '_') + '_SHA': item.stdout} ) }}"
   with_items: "{{ commit_shas.results }}"
 
     repos_shas: "{{ repos_shas|default({}) | combine( {item.item | upper | replace('-', '_') + '_SHA': item.stdout} ) }}"
   with_items: "{{ commit_shas.results }}"
 
-- name: Log repos and shas to console
-  debug:
-    msg: "{{ item.key }}={{ item.value }}"
-  with_dict: "{{ repos_shas }}"
-
 - name: Record git SHAs to /tmp/release.properties file
   lineinfile:
     path: /tmp/release.properties
 - name: Record git SHAs to /tmp/release.properties file
   lineinfile:
     path: /tmp/release.properties