Retour du NFS sur le serveur Bittorrent et arrêt du HTTP
This commit is contained in:
@@ -7,3 +7,6 @@
|
||||
service:
|
||||
name: sonarr
|
||||
state: restarted
|
||||
|
||||
- name: export nfs
|
||||
command: exportfs -a
|
||||
|
@@ -2,3 +2,4 @@
|
||||
- include_tasks: sonarr.yml
|
||||
- include_tasks: subliminal.yml
|
||||
- include_tasks: configdir.yml
|
||||
- include_tasks: nfsserver.yml
|
||||
|
15
roles/bittorrent/tasks/nfsserver.yml
Normal file
15
roles/bittorrent/tasks/nfsserver.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- getent:
|
||||
database: passwd
|
||||
key: debian-transmission
|
||||
|
||||
- name: install nfs server
|
||||
package:
|
||||
name: nfs-kernel-server
|
||||
state: present
|
||||
|
||||
- name: copy exports file
|
||||
template:
|
||||
src: exports.j2
|
||||
dest: /etc/exports
|
||||
notify:
|
||||
- export nfs
|
1
roles/bittorrent/templates/exports.j2
Normal file
1
roles/bittorrent/templates/exports.j2
Normal file
@@ -0,0 +1 @@
|
||||
/var/lib/transmission-daemon/downloads 10.233.212.64/26(ro,async,no_subtree_check,all_squash,anonuid={{ getent_passwd['debian-transmission'][1] }},anongid={{ getent_passwd['debian-transmission'][2] }})
|
Reference in New Issue
Block a user