Selaa lähdekoodia

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

master
Erin Sims 2 vuotta sitten
vanhempi
commit
8935dd97e0
2 muutettua tiedostoa jossa 20 lisäystä ja 0 poistoa
  1. +6
    -0
      playbooks/ssh-config
  2. +14
    -0
      playbooks/sshfs.yaml

+ 6
- 0
playbooks/ssh-config Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 }}/"


Ladataan…
Peruuta
Tallenna