mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-26 11:33:08 +00:00
Merge pull request #80 from scotws/emby_config
Add permissions parameters for Plex and Emby
This commit is contained in:
commit
84e0c96922
4 changed files with 35 additions and 15 deletions
34
README.md
34
README.md
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
[![Build Status](https://img.shields.io/travis/com/davestephens/ansible-nas.svg?logo=travis&style=flat-square)](https://travis-ci.com/davestephens/ansible-nas) [![Gitter chat](https://img.shields.io/gitter/room/ansible-nas/chat.svg?logo=gitter&style=flat-square)](https://gitter.im/Ansible-NAS/Chat) [![license](https://img.shields.io/github/license/DAVFoundation/api_doc.svg?style=flat-square)](https://github.com/davestephens/ansible-nas/blob/master/LICENSE)
|
[![Build Status](https://img.shields.io/travis/com/davestephens/ansible-nas.svg?logo=travis&style=flat-square)](https://travis-ci.com/davestephens/ansible-nas) [![Gitter chat](https://img.shields.io/gitter/room/ansible-nas/chat.svg?logo=gitter&style=flat-square)](https://gitter.im/Ansible-NAS/Chat) [![license](https://img.shields.io/github/license/DAVFoundation/api_doc.svg?style=flat-square)](https://github.com/davestephens/ansible-nas/blob/master/LICENSE)
|
||||||
|
|
||||||
After getting burned by broken FreeNAS updates one too many times, I figured I could do a much better job myself using
|
After getting burned by broken FreeNAS updates one too many times, I figured I
|
||||||
just a stock Ubuntu install, some clever Ansible config and a bunch of Docker containers.
|
could do a much better job myself using just a stock Ubuntu install, some clever
|
||||||
|
Ansible config and a bunch of Docker containers.
|
||||||
|
|
||||||
## What This Sets Up
|
## What This Sets Up
|
||||||
|
|
||||||
|
@ -60,19 +61,27 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of Docker co
|
||||||
|
|
||||||
## What This Could Do
|
## What This Could Do
|
||||||
|
|
||||||
Ansible-NAS can run anything that's in a Docker image, which is why Portainer is included. A NAS configuration is a pretty personal thing based on what you download, what media you view, how many photos you take...so it's difficult to please everyone.
|
Ansible-NAS can run anything that's in a Docker image, which is why Portainer is
|
||||||
|
included. A NAS configuration is a pretty personal thing based on what you
|
||||||
|
download, what media you view, how many photos you take...so it's difficult to
|
||||||
|
please everyone.
|
||||||
|
|
||||||
That said, if specific functionality you want isn't included and you think others could benefit, add it and raise a PR!
|
That said, if specific functionality you want isn't included and you think
|
||||||
|
others could benefit, add it and raise a PR!
|
||||||
|
|
||||||
## What This Doesn't Do
|
## What This Doesn't Do
|
||||||
|
|
||||||
Ansible NAS doesn't set up your disk partitions, primarily because getting it wrong can be incredibly destructive.
|
Ansible NAS doesn't set up your disk partitions, primarily because getting it
|
||||||
That aside, configuring partitions is usually a one-time (or very infrequent) event, so there's not much to be
|
wrong can be incredibly destructive. That aside, configuring partitions is
|
||||||
gained by automating it.
|
usually a one-time (or very infrequent) event, so there's not much to be gained
|
||||||
|
by automating it.
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
:skull: Before running anything, check out the playbook and understand what it does. Run it against a VM and make sure you're happy. ***Do not*** blindly download code from the internet and trust that it's going to work as you expect. :skull:
|
:skull: Before running anything, check out the playbook and understand what it
|
||||||
|
does. Run it against a VM and make sure you're happy. ***Do not*** blindly
|
||||||
|
download code from the internet and trust that it's going to work as you expect.
|
||||||
|
:skull:
|
||||||
|
|
||||||
1. Enable the Ubuntu Universe repository: `sudo add-apt-repository universe`
|
1. Enable the Ubuntu Universe repository: `sudo add-apt-repository universe`
|
||||||
2. Install Ansible: `sudo apt install ansible`
|
2. Install Ansible: `sudo apt install ansible`
|
||||||
|
@ -87,7 +96,8 @@ gained by automating it.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
You can read the docs [here](https://davestephens.github.io/ansible-nas). PRs for more documentation always welcome!
|
You can read the docs [here](https://davestephens.github.io/ansible-nas). PRs
|
||||||
|
for more documentation always welcome!
|
||||||
|
|
||||||
## Migrating from FreeNAS
|
## Migrating from FreeNAS
|
||||||
|
|
||||||
|
@ -102,8 +112,10 @@ Assuming that your Ubuntu system disk is separate from your storage (it should b
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Ansible NAS targets the latest Ubuntu LTS release, which is currently Ubuntu Server 18.04.2 LTS.
|
* Ansible NAS targets the latest Ubuntu LTS release, which is currently Ubuntu
|
||||||
* You can run Ansible-NAS on whatever you like, read the docs for more info. I use an HP Microserver.
|
Server 18.04.2 LTS.
|
||||||
|
* You can run Ansible-NAS on whatever you like, read the docs for more info. I
|
||||||
|
use an HP Microserver.
|
||||||
|
|
||||||
## Getting Help
|
## Getting Help
|
||||||
|
|
||||||
|
|
|
@ -287,20 +287,28 @@ transmission_local_network: "192.168.1.0/24"
|
||||||
###
|
###
|
||||||
### Plex
|
### Plex
|
||||||
###
|
###
|
||||||
|
# If you're paranoid, set permissions to "ro" so Plex won't ever be able to
|
||||||
|
# delete your files
|
||||||
plex_available_externally: "false"
|
plex_available_externally: "false"
|
||||||
plex_config_directory: "{{ docker_home }}/plex/config"
|
plex_config_directory: "{{ docker_home }}/plex/config"
|
||||||
plex_movies_directory: "{{ movies_root }}"
|
plex_movies_directory: "{{ movies_root }}"
|
||||||
|
plex_movies_permissions: "rw"
|
||||||
plex_tv_directory: "{{ tv_root }}"
|
plex_tv_directory: "{{ tv_root }}"
|
||||||
|
plex_tv_permissions: "rw"
|
||||||
plex_user_id: 0
|
plex_user_id: 0
|
||||||
plex_group_id: 0
|
plex_group_id: 0
|
||||||
|
|
||||||
###
|
###
|
||||||
### Emby
|
### Emby
|
||||||
###
|
###
|
||||||
|
# If you're paranoid, set permissions to "ro" so Emby won't ever be able to
|
||||||
|
# delete your files
|
||||||
emby_available_externally: "false"
|
emby_available_externally: "false"
|
||||||
emby_config_directory: "{{ docker_home }}/emby/config"
|
emby_config_directory: "{{ docker_home }}/emby/config"
|
||||||
emby_movies_directory: "{{ movies_root }}"
|
emby_movies_directory: "{{ movies_root }}"
|
||||||
|
emby_movies_permissions: "rw"
|
||||||
emby_tv_directory: "{{ tv_root }}"
|
emby_tv_directory: "{{ tv_root }}"
|
||||||
|
emby_tv_permissions: "rw"
|
||||||
emby_user_id: 0
|
emby_user_id: 0
|
||||||
emby_group_id: 0
|
emby_group_id: 0
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
pull: true
|
pull: true
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ emby_config_directory }}:/config:rw"
|
- "{{ emby_config_directory }}:/config:rw"
|
||||||
- "{{ emby_movies_directory }}:/movies:rw"
|
- "{{ emby_movies_directory }}:/movies:{{ emby_movies_permissions }}"
|
||||||
- "{{ emby_tv_directory }}:/tv:rw"
|
- "{{ emby_tv_directory }}:/tv:{{ emby_tv_permissions }}"
|
||||||
ports:
|
ports:
|
||||||
- "8096:8096" # HTTP port
|
- "8096:8096" # HTTP port
|
||||||
- "8920:8920" # HTTPS port
|
- "8920:8920" # HTTPS port
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
pull: true
|
pull: true
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ plex_config_directory }}:/config:rw"
|
- "{{ plex_config_directory }}:/config:rw"
|
||||||
- "{{ plex_movies_directory }}:/movies:rw"
|
- "{{ plex_movies_directory }}:/movies:{{ plex_movies_permissions }}"
|
||||||
- "{{ plex_tv_directory }}:/tv:rw"
|
- "{{ plex_tv_directory }}:/tv:{{ plex_tv_permissions }}"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
env:
|
env:
|
||||||
TZ: "{{ ansible_nas_timezone }}"
|
TZ: "{{ ansible_nas_timezone }}"
|
||||||
|
|
Loading…
Reference in a new issue