瀏覽代碼

working on changes, and debugging

master
Erin Sims 2 年之前
父節點
當前提交
e938341325
共有 1 個文件被更改,包括 15 次插入1 次删除
  1. +15
    -1
      playbooks/sshfs.yaml

+ 15
- 1
playbooks/sshfs.yaml 查看文件

@@ -33,6 +33,8 @@
owner: sshfs owner: sshfs
group: sshfs group: sshfs
mode: '0700' mode: '0700'
notify:
- name: SSHFS
- name: copy ssh config - name: copy ssh config
copy: copy:
src: "./ssh-config" src: "./ssh-config"
@@ -40,6 +42,8 @@
owner: sshfs owner: sshfs
group: sshfs group: sshfs
mode: '0700' mode: '0700'
notify:
- name: SSHFS
- name: "sshfs mount {{ item }}" - name: "sshfs mount {{ item }}"
file: file:
path: "{{ localpath}}{{ item }}/" path: "{{ localpath}}{{ item }}/"
@@ -48,6 +52,8 @@
group: root group: root
mode: '0777' mode: '0777'
loop: "{{ share }}" loop: "{{ share }}"
notify:
- name: SSHFS
- name: setup service sshfs - name: setup service sshfs
template: template:
src: sshfs.service.j2 src: sshfs.service.j2
@@ -56,7 +62,9 @@
owner: root owner: root
group: root group: root
loop: "{{ share }}" loop: "{{ share }}"
- name: "Sshfs {{ item }} service start"
notify:
- name: SSHFS
- name: "sshfs {{ item }} service start"
systemd: systemd:
name: "sshfs-{{ item }}" name: "sshfs-{{ item }}"
state: started state: started
@@ -64,3 +72,9 @@
masked: no masked: no
daemon_reload: yes daemon_reload: yes
loop: "{{ share }}" loop: "{{ share }}"
handlers:
- name: SSHFS
ansible.builtin.service:
name: sshfs {{ item }} service start"
state: restarted
loop: "{{ share }}"

Loading…
取消
儲存