Retour du NFS sur le serveur Bittorrent et arrêt du HTTP

This commit is contained in:
VC
2020-02-01 17:36:31 +01:00
parent 129874c4c0
commit 3192dbf2ac
5 changed files with 20 additions and 15 deletions

View File

@@ -7,3 +7,6 @@
service:
name: sonarr
state: restarted
- name: export nfs
command: exportfs -a

View File

@@ -2,3 +2,4 @@
- include_tasks: sonarr.yml
- include_tasks: subliminal.yml
- include_tasks: configdir.yml
- include_tasks: nfsserver.yml

View 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

View 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] }})

View File

@@ -14,18 +14,3 @@ server {
}
}
server {
listen *:80;
server_name nfs.mateu.be;
location / {
root /var/lib/transmission-daemon/downloads/;
# standard
autoindex on;
allow 10.233.212.64/27;
# dav
dav_methods off;
dav_ext_methods PROPFIND OPTIONS;
dav_access all:r;
}
}