浏览代码

working on changes, and debugging

master
Erin Sims 2 年前
父节点
当前提交
fbeb67d0ef
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. +3
    -4
      playbooks/sshfs.yaml

+ 3
- 4
playbooks/sshfs.yaml 查看文件

@@ -33,14 +33,14 @@
owner: sshfs
group: sshfs
mode: '0700'
- name: copy ssh config
- name: copy ssh config
copy:
src: "./ssh-config"
dest: "/home/sshfs/.ssh/config"
owner: sshfs
group: sshfs
mode: '0700'
- name: "sshfs mount {{ item }}"
- name: "sshfs mount {{ item }}"
file:
path: "{{ localpath}}{{ item }}/"
state: directory
@@ -48,8 +48,7 @@
group: root
mode: '0777'
loop: "{{ share }}"
- 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 }}"


正在加载...
取消
保存