Fix: Use shell to run nodejs commands instead
[ci-management.git] / packer / provision / local-builder.yaml
index 0e2976a..a34fdb5 100644 (file)
     - name: Install nodejs and npm
       block:
         - name: 'Pull latest nodejs version'
-          command: 'curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo apt-get install -y nodejs'
+          shell: |
+            curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && sudo apt-get install -y nodejs
           become: yes
         - name: 'Check nodejs version'
           command: node --version