Fix: Elevate permissions during nodejs install step 29/134129/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 14 Apr 2023 01:24:09 +0000 (18:24 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Fri, 14 Apr 2023 01:24:09 +0000 (18:24 -0700)
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Iadcc19970d2f482c223f41f67d27de0e85abe60f

packer/provision/local-docker.yaml

index ec37f51..6f3b6f3 100644 (file)
           apt_key:
             url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
             state: present
+          become: true
         - name: add nodejs repository
           apt_repository:
             repo: deb https://deb.nodesource.com/node_19.x {{ ansible_distribution_release }} main
             state: latest
             update_cache: yes
+          become: true
         - name: install nodejs
           apt:
             name: