From 86f84b9fead6726a9b422a0fe4aa84bc5dcee375 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Mon, 26 Sep 2022 06:53:49 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.service.j2 | 2 +- playbooks/sshfs.yaml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/playbooks/sshfs.service.j2 b/playbooks/sshfs.service.j2 index 7169929..569ec35 100644 --- a/playbooks/sshfs.service.j2 +++ b/playbooks/sshfs.service.j2 @@ -4,6 +4,6 @@ After=network.target sound.target [Service] Type=simple -ExecStart=/usr/bin/sshfs -o allow_root "{{ [username,'@',hostname,':',localpath,item'/',' ',remotepath,item'/' ]|join() }}" +ExecStart=/usr/bin/sshfs -p "{{sshfsport }}" -o allow_root "{{ [username,'@',hostname,':',localpath,item'/',' ',remotepath,item'/' ]|join() }}" Restart=on-failure diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index 33b57ad..d1f69d5 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -7,10 +7,9 @@ - 'MOVIES' localpath: '/mnt/' remotepath: '/pool/' - - hostname: home.thrace-lan.info - username: sshfs - sshfsport: 2200 + hostname: home.thrace-lan.info + username: sshfs + sshfsport: 2200 - name: sshfs ansible.builtin.user: name: ssfs