summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-13 01:01:55 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-13 01:01:55 +0100
commit675e56e525459262cb97a651c1d9e65cb5f37e2c (patch)
treed0c239c27c42e407b29b1c2e622e1116f1c8ac37
parenta19180dfda49b96ff27911a71255ea3a504c4bb1 (diff)
downloadAnsible-675e56e525459262cb97a651c1d9e65cb5f37e2c.tar.gz
Ansible-675e56e525459262cb97a651c1d9e65cb5f37e2c.tar.zst
Ansible-675e56e525459262cb97a651c1d9e65cb5f37e2c.zip
Add nodejs history variable
-rw-r--r--roles/contexts/fretlink/defaults/main.yml1
-rw-r--r--roles/init/templates/pam_environment.j21
-rw-r--r--roles/programming/nodejs/tasks/main.yml4
3 files changed, 6 insertions, 0 deletions
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:
4 - Bash 4 - Bash
5 - Docker 5 - Docker
6 - Haskell 6 - Haskell
7 - JavaScript
7 - MongoDB 8 - MongoDB
8 - NodeJS 9 - NodeJS
9 - PostgreSQL 10 - 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"
61# Nodejs 61# Nodejs
62NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm" 62NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm"
63NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc" 63NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc"
64NODE_REPL_HISTORY DEFAULT="${XDG_STATE_HOME}/nodejs/repl_history"
64 65
65# TMUX 66# TMUX
66TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}" 67TMUX_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 @@
5 path: "$XDG_CONFIG_HOME/{{ item }}" 5 path: "$XDG_CONFIG_HOME/{{ item }}"
6 loop: 6 loop:
7 - npm 7 - npm
8- name: State dirs
9 file:
10 state: directory
11 path: "$XDG_STATE_HOME/nodejs"
8- name: config file 12- name: config file
9 copy: 13 copy:
10 src: npmrc 14 src: npmrc