From a2d7a4ee1259fad256ffbc8e12af93aa87c2c19e Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Tue, 2 Jul 2024 21:17:33 -0400 Subject: [PATCH] Use become instead of sudo This is the recommended way of doing things in Ansible. --- .../roles/model-my-watershed.tiler/tasks/dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/ansible/roles/model-my-watershed.tiler/tasks/dependencies.yml b/deployment/ansible/roles/model-my-watershed.tiler/tasks/dependencies.yml index ce8d50bda..8e9ab4805 100644 --- a/deployment/ansible/roles/model-my-watershed.tiler/tasks/dependencies.yml +++ b/deployment/ansible/roles/model-my-watershed.tiler/tasks/dependencies.yml @@ -15,7 +15,7 @@ state: present - name: Install Windshaft JavaScript dependencies - command: sudo npm install --unsafe-perm + command: npm install --unsafe-perm args: chdir: "{{ tiler_home }}" - become: False + become: True