浏览代码

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

正在加载...
取消
保存