Explorar el Código

working on changes, and debugging

master
Erin Sims hace 2 años
padre
commit
e938341325
Se han modificado 1 ficheros con 15 adiciones y 1 borrados
  1. +15
    -1
      playbooks/sshfs.yaml

+ 15
- 1
playbooks/sshfs.yaml Ver fichero

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

Cargando…
Cancelar
Guardar