Merge "Update local-docker"
authorBengt Thuree <bthuree@linuxfoundation.org>
Wed, 7 Sep 2022 02:52:00 +0000 (02:52 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 7 Sep 2022 02:52:00 +0000 (02:52 +0000)
packer/provision/local-docker.yaml

index c0c0233..6e3aad8 100644 (file)
     - name: npm self-update
       command: npm install npm@{{ npm_version }} -g
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: npm install n module
       command: npm install n -g
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: Upgrade latest stable node version
       command: n stable | PATH="$PATH"
       become: true
+      when: ansible_distribution == 'Ubuntu'
 
     - name: Add Google Chrome key
       apt_key: