Skip to content

Commit

Permalink
Merge branch 'feature/global'
Browse files Browse the repository at this point in the history
  • Loading branch information
naftulikay committed Jan 29, 2018
2 parents 78db861 + c7c2708 commit 0133a7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
when: (not node_installed)

- name: set the node version in nodenv
command: "{{ nodenv_executable }} local {{ node_version }}"
command: "{{ nodenv_executable }} global {{ node_version }}"
become: true
become_user: "{{ node_user }}"
become_method: sudo
Expand Down
5 changes: 5 additions & 0 deletions tests/goss.d/files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ file:
- /\$\(nodenv init \-\)/
'/home/{{.Env.node_user}}/.nodenv':
exists: true

'/home/{{.Env.node_user}}/.nodenv/version':
exists: true
contains:
- "{{.Env.node_version}}"

0 comments on commit 0133a7a

Please sign in to comment.