Skip to content
Snippets Groups Projects
Commit d8348468 authored by Chris Hines's avatar Chris Hines
Browse files

change to allow linking to more than just /usr/local

parent 6cb3401f
No related branches found
No related tags found
No related merge requests found
--- ---
- name: stat usrlocal - name: stat
stat: path={{ dest }} stat: path={{ dest }}
register: stat_usrlocal register: stat_r
- name: mv - name: mv
command: mv /usr/local /usr/local_old command: mv "{{ dest }}" "{{ dest }}_old"
when: stat_usrlocal.stat.isdir == True when: stat_r.stat.exists and stat_r.stat.isdir
sudo: true sudo: true
- name: stat
stat: path={{ dest }}
register: stat_r
- name: link - name: link
file: src="{{ src }}" dest="{{ dest }}" state=link file: src="{{ src }}" dest="{{ dest }}" state=link
when: not stat_r.stat.exists
sudo: true sudo: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment