Skip to content

Commit

Permalink
Fix source.yml to work with Ansible 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
umairsiddique committed Jul 30, 2014
1 parent 58f0b16 commit 5e770fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
force: yes

- name: node.js | Add the node.js binary to the system path
lineinfile: "{{item}}"
lineinfile: "dest={{item.dest}} regexp={{item.regexp}} line={{item.line}} state={{item.state}}"
with_items:
- dest=/etc/profile regexp='^NODE_HOME=/usr/local/nodejs/default' line="NODE_HOME=/usr/local/nodejs/default" state=present
- dest=/etc/profile regexp='^PATH=.*NODE_HOME.*' line="PATH=$PATH:$NODE_HOME/bin" state=present
- { dest: "/etc/profile", regexp: "^NODE_HOME=/usr/local/nodejs/default", line: "NODE_HOME=/usr/local/nodejs/default", state: "present" }
- { dest: "/etc/profile", regexp: "^PATH=.*NODE_HOME.*", line: "PATH=$PATH:$NODE_HOME/bin", state: "present" }

- name: node.js | Inform the system where node is located and set this one as the default
shell: "{{item}}"
Expand Down

0 comments on commit 5e770fc

Please sign in to comment.