Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lineinfile:
- dest: ~/.profile
- regexp: "^export {{ item.regexp }}"
- line: "export {{ item.line }}"
- create: yes
- with_items:
- - { regexp: 'PATH', line: 'PATH=:~/bin:~/node_modules/.bin:$PATH' }
- lineinfile:
- dest: ~/.profile
- backrefs: yes
- regexp: "^export PATH=(.*)/opt/foo/bar/baz/bin[\:]*(.*)"
- line: "export PATH=\1\2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement