Browse Source

working on changes, and debugging

master
Erin Sims 2 years ago
parent
commit
90af653287
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      playbooks/sshfs.yaml

+ 2
- 5
playbooks/sshfs.yaml View File

@@ -54,11 +54,8 @@
loop: "{{ share }}" loop: "{{ share }}"
notify: notify:
- SSHFS - SSHFS
- name: Ensure fstab has sshfs
ansible.builtin.lineinfile:
path: /etc/fstab
regexp: '^sshfs'
line: "{{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }} fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/sshfs/.ssh/sshfs-key,allow_other,reconnect 0 0"
- name: "mount {{ item}}"
ansible.builtin.command: /usr/bin/sshfs "{{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }} -o IdentityFile=/home/sshfs/.ssh/sshfs-key,allow_other,reconnect"
loop: "{{ share }}" loop: "{{ share }}"
handlers: handlers:
- name: SSHFS - name: SSHFS


Loading…
Cancel
Save