Browse Source

set json value as fact

Anuj Bansal 3 years ago
parent
commit
e39cf31789
1 changed files with 6 additions and 1 deletions
  1. 6 1
      devops/aws/deploy-playground-playbook.yml

+ 6 - 1
devops/aws/deploy-playground-playbook.yml

@@ -51,12 +51,17 @@
       # Check for the status every 100s
       delay: 100
 
+    - name: Format proposal parameters input
+      set_fact:
+        proposal_parameters_json: '{{ proposal_parameters | from_json | to_json }}'
+      run_once: yes
+
     - name: Build Node image
       command: yarn build:node:docker
       args:
         chdir: '{{ remote_code_path }}'
       environment:
-        ALL_PROPOSALS_PARAMETERS_JSON: '{{ proposal_parameters | from_json | to_json }}'
+        ALL_PROPOSALS_PARAMETERS_JSON: '{{ proposal_parameters_json }}'
       async: 3600
       poll: 0
       register: node_build_result