|
|
@@ -19,6 +19,13 @@ |
|
|
|
name: sshfs |
|
|
|
state: present |
|
|
|
group: sshfs |
|
|
|
- name: make ssh home directory |
|
|
|
file: |
|
|
|
path: "/home/sshfs/.ssh/" |
|
|
|
state: directory |
|
|
|
owner: sshfs |
|
|
|
group: sshfs |
|
|
|
mode: '0700' |
|
|
|
- name: copy private key |
|
|
|
copy: |
|
|
|
src: "./sshfs-key" |
|
|
@@ -26,6 +33,13 @@ |
|
|
|
owner: sshfs |
|
|
|
group: sshfs |
|
|
|
mode: '0700' |
|
|
|
- name: copy ssh config |
|
|
|
copy: |
|
|
|
src: "./ssh-config" |
|
|
|
dest: "/home/sshfs/.ssh/config" |
|
|
|
owner: sshfs |
|
|
|
group: sshfs |
|
|
|
mode: '0700' |
|
|
|
- name: "sshfs mount {{ item }}" |
|
|
|
file: |
|
|
|
path: "{{ localpath}}{{ item }}/" |
|
|
|