From a813165bdbdc47f54aa78559a36f9d5b6654869f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Wed, 8 Apr 2026 10:12:42 +0200 Subject: [PATCH] scaenae: move env vars to yarn task --- roles/scaenae/tasks/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/roles/scaenae/tasks/main.yml b/roles/scaenae/tasks/main.yml index 7fab378..fdd2381 100644 --- a/roles/scaenae/tasks/main.yml +++ b/roles/scaenae/tasks/main.yml @@ -1,10 +1,4 @@ --- -# This is required to ensure that the node executable is found -# when running yarn -environment: - NVM_DIR: /home/nicolo/.nvm - PATH: /home/nicolo/.nvm/versions/node/v22.21.1/bin:{{ ansible_env.PATH }} - - name: Ensure ACL is installed ansible.builtin.package: name: @@ -38,3 +32,8 @@ environment: become: true # To be changed!! become_user: nicolo + # This is required to ensure that the node executable is found + # when running yarn + environment: + NVM_DIR: /home/nicolo/.nvm + PATH: /home/nicolo/.nvm/versions/node/v22.21.1/bin:{{ ansible_env.PATH }}