|
@@ -34,7 +34,7 @@ |
|
|
group: sshfs |
|
|
group: sshfs |
|
|
mode: '0700' |
|
|
mode: '0700' |
|
|
notify: |
|
|
notify: |
|
|
- name: SSHFS |
|
|
|
|
|
|
|
|
- SSHFS |
|
|
- name: copy ssh config |
|
|
- name: copy ssh config |
|
|
copy: |
|
|
copy: |
|
|
src: "./ssh-config" |
|
|
src: "./ssh-config" |
|
@@ -43,7 +43,7 @@ |
|
|
group: sshfs |
|
|
group: sshfs |
|
|
mode: '0700' |
|
|
mode: '0700' |
|
|
notify: |
|
|
notify: |
|
|
- name: SSHFS |
|
|
|
|
|
|
|
|
- SSHFS |
|
|
- name: "sshfs mount {{ item }}" |
|
|
- name: "sshfs mount {{ item }}" |
|
|
file: |
|
|
file: |
|
|
path: "{{ localpath}}{{ item }}/" |
|
|
path: "{{ localpath}}{{ item }}/" |
|
@@ -53,7 +53,7 @@ |
|
|
mode: '0777' |
|
|
mode: '0777' |
|
|
loop: "{{ share }}" |
|
|
loop: "{{ share }}" |
|
|
notify: |
|
|
notify: |
|
|
- name: SSHFS |
|
|
|
|
|
|
|
|
- SSHFS |
|
|
- name: setup service sshfs |
|
|
- name: setup service sshfs |
|
|
template: |
|
|
template: |
|
|
src: sshfs.service.j2 |
|
|
src: sshfs.service.j2 |
|
@@ -63,7 +63,7 @@ |
|
|
group: root |
|
|
group: root |
|
|
loop: "{{ share }}" |
|
|
loop: "{{ share }}" |
|
|
notify: |
|
|
notify: |
|
|
- name: SSHFS |
|
|
|
|
|
|
|
|
- SSHFS |
|
|
- name: "sshfs {{ item }} service start" |
|
|
- name: "sshfs {{ item }} service start" |
|
|
systemd: |
|
|
systemd: |
|
|
name: "sshfs-{{ item }}" |
|
|
name: "sshfs-{{ item }}" |
|
@@ -75,6 +75,6 @@ |
|
|
handlers: |
|
|
handlers: |
|
|
- name: SSHFS |
|
|
- name: SSHFS |
|
|
ansible.builtin.service: |
|
|
ansible.builtin.service: |
|
|
name: sshfs {{ item }} service start" |
|
|
|
|
|
|
|
|
name: sshfs {{ item }} service restart" |
|
|
state: restarted |
|
|
state: restarted |
|
|
loop: "{{ share }}" |
|
|
loop: "{{ share }}" |