From 777c9129576e65595dee5acf1eeebccf4c184cff Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Sat, 1 Oct 2022 06:06:30 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.yaml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index 60a299d..7e0516b 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -33,18 +33,14 @@ owner: sshfs group: sshfs mode: '0700' - notify: - - SSHFS - - name: copy ssh config + - name: copy ssh config copy: src: "./ssh-config" dest: "/home/sshfs/.ssh/config" owner: sshfs group: sshfs mode: '0700' - notify: - - SSHFS - - name: "sshfs mount {{ item }}" + - name: "sshfs mount {{ item }}" file: path: "{{ localpath}}{{ item }}/" state: directory @@ -52,12 +48,8 @@ group: root mode: '0777' loop: "{{ share }}" - notify: - - SSHFS - - name: "mount {{ item}}" + - name: "mount {{ item}}" ansible.builtin.command: "/usr/bin/sshfs -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}" + become_user: sshfs loop: "{{ share }}" - handlers: - - name: SSHFS - ansible.builtin.command: "mount {{ [ localpath,item,'/' ]|join() }}" - loop: "{{ share }}" +