Browse Source

working on changes, and debugging

master
Erin Sims 2 years ago
parent
commit
777c912957
1 changed files with 5 additions and 13 deletions
  1. +5
    -13
      playbooks/sshfs.yaml

+ 5
- 13
playbooks/sshfs.yaml View File

@@ -33,18 +33,14 @@
owner: sshfs owner: sshfs
group: sshfs group: sshfs
mode: '0700' mode: '0700'
notify:
- SSHFS
- name: copy ssh config
- name: copy ssh config
copy: copy:
src: "./ssh-config" src: "./ssh-config"
dest: "/home/sshfs/.ssh/config" dest: "/home/sshfs/.ssh/config"
owner: sshfs owner: sshfs
group: sshfs group: sshfs
mode: '0700' mode: '0700'
notify:
- SSHFS
- name: "sshfs mount {{ item }}"
- name: "sshfs mount {{ item }}"
file: file:
path: "{{ localpath}}{{ item }}/" path: "{{ localpath}}{{ item }}/"
state: directory state: directory
@@ -52,12 +48,8 @@
group: root group: root
mode: '0777' mode: '0777'
loop: "{{ share }}" loop: "{{ share }}"
notify:
- SSHFS
- name: "mount {{ item}}"
- name: "mount {{ item}}"
ansible.builtin.command: "/usr/bin/sshfs -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}" ansible.builtin.command: "/usr/bin/sshfs -o allow_root {{ [username,'@',hostname,':',remotepath,item,'/',' ',localpath,item,'/' ]|join() }}"
become_user: sshfs
loop: "{{ share }}" loop: "{{ share }}"
handlers:
- name: SSHFS
ansible.builtin.command: "mount {{ [ localpath,item,'/' ]|join() }}"
loop: "{{ share }}"


Loading…
Cancel
Save