Bläddra i källkod

working on changes, and debugging

master
Erin Sims 2 år sedan
förälder
incheckning
6d2f92f789
1 ändrade filer med 27 tillägg och 27 borttagningar
  1. +27
    -27
      playbooks/sshfs.yaml

+ 27
- 27
playbooks/sshfs.yaml Visa fil

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

Laddar…
Avbryt
Spara