Ansible repo for digital ocean projects
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- ---
- - hosts: mpdb
- tasks:
- vars:
- share:
- - 'MUSIC'
- - 'MOVIES'
- localpath: '/mnt/'
- remotepath: '/pool/'
-
- hostname: home.thrace-lan.info
- username: sshfs
- sshfsport: 2200
- - 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 }}"
|