瀏覽代碼

working on changes, and debugging

master
Erin Sims 2 年之前
父節點
當前提交
90af653287
共有 1 個檔案被更改,包括 2 行新增5 行删除
  1. +2
    -5
      playbooks/sshfs.yaml

+ 2
- 5
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


Loading…
取消
儲存