diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-13 01:01:55 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-13 01:01:55 +0100 |
commit | 675e56e525459262cb97a651c1d9e65cb5f37e2c (patch) | |
tree | d0c239c27c42e407b29b1c2e622e1116f1c8ac37 /roles | |
parent | a19180dfda49b96ff27911a71255ea3a504c4bb1 (diff) | |
download | Ansible-675e56e525459262cb97a651c1d9e65cb5f37e2c.tar.gz Ansible-675e56e525459262cb97a651c1d9e65cb5f37e2c.tar.zst Ansible-675e56e525459262cb97a651c1d9e65cb5f37e2c.zip |
Add nodejs history variable
Diffstat (limited to 'roles')
-rw-r--r-- | roles/contexts/fretlink/defaults/main.yml | 1 | ||||
-rw-r--r-- | roles/init/templates/pam_environment.j2 | 1 | ||||
-rw-r--r-- | roles/programming/nodejs/tasks/main.yml | 4 |
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 |
62 | NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm" | 62 | NVM_DIR DEFAULT="${XDG_DATA_HOME}/nvm" |
63 | NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc" | 63 | NPM_CONFIG_USERCONFIG DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc" |
64 | NODE_REPL_HISTORY DEFAULT="${XDG_STATE_HOME}/nodejs/repl_history" | ||
64 | 65 | ||
65 | # TMUX | 66 | # TMUX |
66 | TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}" | 67 | 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 @@ | |||
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 |