Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. lineinfile:
  2. dest: ~/.profile
  3. regexp: "^export {{ item.regexp }}"
  4. line: "export {{ item.line }}"
  5. create: yes
  6. with_items:
  7. - { regexp: 'PATH', line: 'PATH=:~/bin:~/node_modules/.bin:$PATH' }
  8.  
  9. lineinfile:
  10. dest: ~/.profile
  11. backrefs: yes
  12. regexp: "^export PATH=(.*)/opt/foo/bar/baz/bin[\:]*(.*)"
  13. line: "export PATH=\1\2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement