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