From: Ismaƫl Bouya Date: Tue, 13 Nov 2018 00:01:55 +0000 (+0100) Subject: Add nodejs history variable X-Git-Tag: v1.0~19 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=675e56e525459262cb97a651c1d9e65cb5f37e2c;p=perso%2FImmae%2FConfig%2FAnsible.git Add nodejs history variable --- diff --git a/roles/contexts/fretlink/defaults/main.yml b/roles/contexts/fretlink/defaults/main.yml index ee9836f..101c9aa 100644 --- a/roles/contexts/fretlink/defaults/main.yml +++ b/roles/contexts/fretlink/defaults/main.yml @@ -4,6 +4,7 @@ zeal_roles: - Bash - Docker - Haskell + - JavaScript - MongoDB - NodeJS - PostgreSQL diff --git a/roles/init/templates/pam_environment.j2 b/roles/init/templates/pam_environment.j2 index 0eb0f89..65b92e7 100644 --- a/roles/init/templates/pam_environment.j2 +++ b/roles/init/templates/pam_environment.j2 @@ -61,6 +61,7 @@ STACK_ROOT DEFAULT="${XDG_DATA_HOME}/stack" # Nodejs NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm" NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc" +NODE_REPL_HISTORY DEFAULT="${XDG_STATE_HOME}/nodejs/repl_history" # TMUX TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}" diff --git a/roles/programming/nodejs/tasks/main.yml b/roles/programming/nodejs/tasks/main.yml index eef4d2f..fdcd678 100644 --- a/roles/programming/nodejs/tasks/main.yml +++ b/roles/programming/nodejs/tasks/main.yml @@ -5,6 +5,10 @@ path: "$XDG_CONFIG_HOME/{{ item }}" loop: - npm +- name: State dirs + file: + state: directory + path: "$XDG_STATE_HOME/nodejs" - name: config file copy: src: npmrc