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.

35 rivejä
684 B

  1. ---
  2. - hosts: mpdb
  3. tasks:
  4. vars:
  5. share:
  6. - 'MUSIC'
  7. - 'MOVIES'
  8. localpath: '/mnt/'
  9. remotepath: '/pool/'
  10. hostname: home.thrace-lan.info
  11. username: sshfs
  12. sshfsport: 2200
  13. - name: sshfs
  14. ansible.builtin.user:
  15. name: ssfs
  16. - name: setup service sshfs
  17. template:
  18. src: sshfs.service.j2
  19. dest: "/usr/lib/systemd/system/sshfs{{ item }}.service"
  20. mode: 0644
  21. owner: root
  22. group: root
  23. loop: "{{ share }}"
  24. - name: "Sshfs {{ item }} service start"
  25. systemd:
  26. name: "Share {{ item }}"
  27. state: started
  28. enabled: yes
  29. masked: no
  30. daemon_reload: yes
  31. loop: "{{ share }}"