summaryrefslogtreecommitdiffstats
path: root/packer/provision
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2023-04-13 18:24:09 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2023-04-13 18:24:09 -0700
commitb8760a0d921316bfefb6efa366a8799de12c5d04 (patch)
treec9171cef5e7d17f646bf82d46b35583987ec1587 /packer/provision
parentf7d0136f7264376ded2544e9ee14d2fad684dda6 (diff)
Fix: Elevate permissions during nodejs install step
Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org> Change-Id: Iadcc19970d2f482c223f41f67d27de0e85abe60f
Diffstat (limited to 'packer/provision')
-rw-r--r--packer/provision/local-docker.yaml2
1 files changed, 2 insertions, 0 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml
index ec37f51ac..6f3b6f38e 100644
--- a/packer/provision/local-docker.yaml
+++ b/packer/provision/local-docker.yaml
@@ -202,11 +202,13 @@
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: