Skip to content

Commit

Permalink
Merge branch 'master' of github.com:grzegorznowak/ansible-nvm-node
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorznowak committed May 1, 2020
2 parents 76a67fe + 4cb16e3 commit 994073d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@
blockinfile: |
dest=/etc/bash.bashrc backup=no
insertbefore="# If not running interactively"
content="cd ~
export NVM_DIR=\"{{ nvm_dir }}\"
content="export NVM_DIR=\"{{ nvm_dir }}\"
[ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\"
[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\""
when: ansible_os_family == "Debian"

- name: Add the NVM's variables to all the profiles in the system (RedHat)
blockinfile: |
dest=/etc/bashrc backup=no
content="cd ~
export NVM_DIR=\"{{ nvm_dir }}\"
content="export NVM_DIR=\"{{ nvm_dir }}\"
[ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\"
[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\""
when: ansible_os_family == "RedHat"
Expand Down

0 comments on commit 994073d

Please sign in to comment.