Ansible repo for digital ocean projects
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
389 B

  1. [Unit]
  2. Description="SSHFS Daemon"
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Install]
  6. WantedBy=default.target
  7. [Mount]
  8. Type=fuse.sshfs
  9. What="{{ [username,'@',hostname,':',remotepath,item,'/' ]|join() }}"
  10. Where="{{[ localpath,item,'/']|join() }}"
  11. Options="_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount"
  12. RestartSec=20
  13. Restart=on-failure