From 675e56e525459262cb97a651c1d9e65cb5f37e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 13 Nov 2018 01:01:55 +0100 Subject: Add nodejs history variable --- roles/contexts/fretlink/defaults/main.yml | 1 + roles/init/templates/pam_environment.j2 | 1 + roles/programming/nodejs/tasks/main.yml | 4 ++++ 3 files changed, 6 insertions(+) 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 -- cgit v1.2.3