From 6d2f92f7895049981ffd59e5f59f86e25876ea80 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Mon, 26 Sep 2022 06:57:11 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.yaml | 54 ++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index a713160..d10e284 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -1,39 +1,39 @@ --- - hosts: mpdb - tasks: vars: share: - 'MUSIC' - 'MOVIES' localpath: '/mnt/' remotepath: '/pool/' - hostname: home.thrace-lan.info - username: sshfs + hostname: "home.thrace-lan.info" + username: "sshfs" sshfsport: 2200 + tasks: - name: sshfs ansible.builtin.user: name: ssfs - - name: sshfs mount - file: - path: "{{ localpath}}{{ item }}/" - state: directory - owner: root - group: root - mode: '0777' - loop: "{{ share }}" - - name: setup service sshfs - template: - src: sshfs.service.j2 - dest: "/usr/lib/systemd/system/sshfs{{ item }}.service" - mode: 0644 - owner: root - group: root - loop: "{{ share }}" - - name: "Sshfs {{ item }} service start" - systemd: - name: "Share {{ item }}" - state: started - enabled: yes - masked: no - daemon_reload: yes - loop: "{{ share }}" + - name: sshfs mount + file: + path: "{{ localpath}}{{ item }}/" + state: directory + owner: root + group: root + mode: '0777' + loop: "{{ share }}" + - name: setup service sshfs + template: + src: sshfs.service.j2 + dest: "/usr/lib/systemd/system/sshfs{{ item }}.service" + mode: 0644 + owner: root + group: root + loop: "{{ share }}" + - name: "Sshfs {{ item }} service start" + systemd: + name: "Share {{ item }}" + state: started + enabled: yes + masked: no + daemon_reload: yes + loop: "{{ share }}"