瀏覽代碼

working on sshfs still trying to get it all to creatuo automatically

master
Erin Sims 2 年之前
父節點
當前提交
8935dd97e0
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. +6
    -0
      playbooks/ssh-config
  2. +14
    -0
      playbooks/sshfs.yaml

+ 6
- 0
playbooks/ssh-config 查看文件

@@ -0,0 +1,6 @@
host home.thrace-lan.info
user sshfs
hostname home.thrace-lan.info
port 22000
identityfile ~/.ssh/sshfs-key


+ 14
- 0
playbooks/sshfs.yaml 查看文件

@@ -19,6 +19,13 @@
name: sshfs
state: present
group: sshfs
- name: make ssh home directory
file:
path: "/home/sshfs/.ssh/"
state: directory
owner: sshfs
group: sshfs
mode: '0700'
- name: copy private key
copy:
src: "./sshfs-key"
@@ -26,6 +33,13 @@
owner: sshfs
group: sshfs
mode: '0700'
- name: copy ssh config
copy:
src: "./ssh-config"
dest: "/home/sshfs/.ssh/config"
owner: sshfs
group: sshfs
mode: '0700'
- name: "sshfs mount {{ item }}"
file:
path: "{{ localpath}}{{ item }}/"


Loading…
取消
儲存