From 90af6532878a19d3433fc31b38e3a7facd52d930 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Sat, 1 Oct 2022 05:51:37 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index 10e5d2d..cc3bb53 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -54,11 +54,8 @@ loop: "{{ share }}" notify: - 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 }}" handlers: - name: SSHFS