From e9383413254c65882fb9cd147e14e7d72a804b81 Mon Sep 17 00:00:00 2001 From: Erin Sims Date: Fri, 30 Sep 2022 07:50:14 -0400 Subject: [PATCH] working on changes, and debugging --- playbooks/sshfs.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/playbooks/sshfs.yaml b/playbooks/sshfs.yaml index 8e58b77..ebe3d30 100644 --- a/playbooks/sshfs.yaml +++ b/playbooks/sshfs.yaml @@ -33,6 +33,8 @@ owner: sshfs group: sshfs mode: '0700' + notify: + - name: SSHFS - name: copy ssh config copy: src: "./ssh-config" @@ -40,6 +42,8 @@ owner: sshfs group: sshfs mode: '0700' + notify: + - name: SSHFS - name: "sshfs mount {{ item }}" file: path: "{{ localpath}}{{ item }}/" @@ -48,6 +52,8 @@ group: root mode: '0777' loop: "{{ share }}" + notify: + - name: SSHFS - name: setup service sshfs template: src: sshfs.service.j2 @@ -56,7 +62,9 @@ owner: root group: root loop: "{{ share }}" - - name: "Sshfs {{ item }} service start" + notify: + - name: SSHFS + - name: "sshfs {{ item }} service start" systemd: name: "sshfs-{{ item }}" state: started @@ -64,3 +72,9 @@ masked: no daemon_reload: yes loop: "{{ share }}" + handlers: + - name: SSHFS + ansible.builtin.service: + name: sshfs {{ item }} service start" + state: restarted + loop: "{{ share }}"