diff --git a/environment-setup.yml b/environment-setup.yml index b1c1d4c..7e59857 100644 --- a/environment-setup.yml +++ b/environment-setup.yml @@ -43,14 +43,14 @@ - devtools - name: 'Create node global installation folder' - raw: mkdir ~/.npm-global && npm config set prefix '~/.npm-global' && touch ~/.profile + raw: mkdir /home/{{server_runs_as}}/.npm-global && npm config set prefix /home/{{server_runs_as}}/.npm-global && touch /home/{{server_runs_as}}/.profile when: ansible_distribution_version == '16.04' tags: - node - devtools - name: 'update profile file' - raw: export PATH=~/.npm-global/bin:$PATH > ~/.profile + raw: export PATH=/home/{{server_runs_as}}/.npm-global/bin:$PATH > /home/{{server_runs_as}}/.profile when: ansible_distribution_version == '16.04' tags: - node