From e3a51a442a3cc52cc1fb7470997bc0c240a60d6e Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Thu, 12 Dec 2024 13:44:32 -0800 Subject: [PATCH] Configure NPM for the deploy user. --- roles/figgy/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/figgy/tasks/main.yml b/roles/figgy/tasks/main.yml index fb176ea10..0d86304eb 100644 --- a/roles/figgy/tasks/main.yml +++ b/roles/figgy/tasks/main.yml @@ -262,5 +262,7 @@ ansible.builtin.shell: cmd: "npm config set //npm.pkg.github.com/:_authToken {{ figgy_github_package_token }} && npm config set @mapnik:registry https://npm.pkg.github.com" changed_when: "'molecule-idempotence-notest' not in ansible_skip_tags" + become: yes + become_user: '{{ deploy_user }}' tags: - site_config