ansible-nas/group_vars/all.yml

202 lines
5.1 KiB
YAML
Raw Normal View History

2021-02-21 19:50:07 +00:00
---
## ._____. .__
## _____ ____ _____|__\_ |__ | | ____ ____ _____ ______
## \__ \ / \ / ___/ || __ \| | _/ __ \ ______ / \\__ \ / ___/
## / __ \| | \\___ \| || \_\ \ |_\ ___/ /_____/ | | \/ __ \_\___ \
## (____ /___| /____ >__||___ /____/\___ > |___| (____ /____ >
## \/ \/ \/ \/ \/ \/ \/ \/
## a n s i b l e - n a s https://github.com/davestephens/ansible-nas
2017-08-28 15:31:54 +00:00
###
2020-01-06 00:11:53 +00:00
### DO NOT EDIT THIS FILE!
2020-01-08 16:12:03 +00:00
### Add your customisations to inventories/<your_inventory>/group_vars/nas.yml
2017-08-28 15:31:54 +00:00
###
###
### General
###
# Will be added to the docker group to give user command line access to docker
ansible_nas_user: david
2019-09-17 17:38:17 +00:00
# Your email and domain, used for Let's Encrypt SSL certs
2018-11-28 23:22:36 +00:00
ansible_nas_email: me@example.com
2018-11-25 15:27:50 +00:00
2020-01-07 22:57:15 +00:00
# Applications will have subdomain SSL certificates created if Traefik is enabled, e.g. ansible-nas.<your-domain>, nextcloud.<your-domain>
2018-11-28 23:22:36 +00:00
ansible_nas_domain: example.com
2021-03-07 10:26:52 +00:00
# What version of python ansible should use on target system (path to spesific binary)
ansible_python_interpreter: /usr/bin/python3
2017-08-28 15:31:54 +00:00
###
### Samba
###
# The location where all shares will be created by default. Can be overridden on a per-share basis.
2018-04-08 23:01:59 +00:00
# This path will be mounted to backup containers, Duplicati
2017-08-28 15:31:54 +00:00
samba_shares_root: /mnt/Volume3
2017-08-28 21:10:19 +00:00
# Where stuff downloaded will be stored
downloads_root: "{{ samba_shares_root }}/downloads"
# Where your movies are stored
movies_root: "{{ samba_shares_root }}/movies"
# Where your TV episodes are stored
tv_root: "{{ samba_shares_root }}/tv"
# Where torrent files are stored (picked up by Transmission for downloading)
torrents_root: "{{ samba_shares_root }}/torrents"
2019-01-03 15:10:39 +00:00
# Where music is stored
music_root: "{{ samba_shares_root }}/music"
# Where podcasts are stored
podcasts_root: "{{ samba_shares_root }}/podcasts"
# Where your books are stored
books_root: "{{ samba_shares_root }}/books"
# Where your audiobooks are stored
audiobooks_root: "{{ samba_shares_root }}/audiobooks"
2020-05-12 22:55:52 +00:00
# Where your comics are stored
2019-11-19 18:13:15 +00:00
comics_root: "{{ samba_shares_root }}/comics"
# Where photos are stored
photos_root: "{{ samba_shares_root }}/photos"
2022-01-08 18:34:13 +00:00
# Where paperless_ng consumes documents
documents_root: "{{ samba_shares_root }}/documents"
2022-01-08 18:34:13 +00:00
# The description that'll appear next to your Ansible-NAS box when browsing your network
samba_server_string: Ansible NAS
2017-08-28 15:31:54 +00:00
# Shares you want published over Samba.
2017-08-28 21:10:19 +00:00
samba_shares:
2017-08-28 15:31:54 +00:00
- name: downloads
comment: "Stuff downloaded"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
2017-08-28 21:10:19 +00:00
path: "{{ downloads_root }}"
2017-08-28 15:31:54 +00:00
- name: movies
comment: "Movies"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
2017-08-28 21:10:19 +00:00
path: "{{ movies_root }}"
2017-08-28 15:31:54 +00:00
- name: tv
comment: "TV Episodes"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
2017-08-28 21:10:19 +00:00
path: "{{ tv_root }}"
2017-08-28 15:31:54 +00:00
2019-01-03 15:10:39 +00:00
- name: music
comment: "Music"
2019-01-03 15:10:39 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
path: "{{ music_root }}"
2019-01-03 15:10:39 +00:00
- name: podcasts
comment: "Podcasts"
2019-01-03 15:10:39 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
path: "{{ podcasts_root }}"
2019-01-03 15:10:39 +00:00
2017-08-28 15:31:54 +00:00
- name: dump
comment: "File dump"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
2017-08-28 15:31:54 +00:00
path: "{{ samba_shares_root }}/dump"
- name: games
comment: "Games"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
2017-08-28 15:31:54 +00:00
path: "{{ samba_shares_root }}/games"
- name: photos
comment: "Pictures"
2017-08-28 15:31:54 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
path: "{{ photos_root }}"
2017-08-28 15:31:54 +00:00
- name: books
comment: "Books"
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
path: "{{ books_root }}"
- name: audiobooks
comment: "Audiobooks"
guest_ok: yes
public: yes
writable: yes
browsable: yes
path: "{{ audiobooks_root }}"
2019-11-19 18:13:15 +00:00
- name: comics
comment: "Comics"
2019-11-19 18:13:15 +00:00
guest_ok: yes
public: yes
writable: yes
2020-10-04 00:20:41 +00:00
browseable: yes
path: "{{ comics_root }}"
2019-11-19 18:13:15 +00:00
- name: documents
comment: "Documents"
2022-01-08 18:34:13 +00:00
guest_ok: yes
public: yes
writable: yes
browseable: yes
path: "{{ documents_root }}"
2022-01-08 18:34:13 +00:00
2019-04-20 11:56:53 +00:00
###
### NFS
###
2019-09-17 17:38:17 +00:00
# Data you want published over NFS. More info on the NFS config format can be found at
2019-04-20 11:56:53 +00:00
# https://help.ubuntu.com/community/SettingUpNFSHowTo#Shares
# WARNING: Weird things might happen if you share the same data over Samba and NFS and allow writes on both!
nfs_shares_root: /mnt/Volume3
nfs_exports:
- "{{ nfs_shares_root }}/public *(rw,sync,no_root_squash)"
###
### Samba
###
# Seems to break browsing of the \\server-name shares root when enabled
samba_mitigate_cve_2017_7494: false
2020-01-05 09:00:27 +00:00
# Enable apple exentensions for compatibility with apple clients
samba_apple_extensions: yes
# The account used when Samba shares are accessed. Shouldn't need to change this unless you want to
# mess with Samba user permissions.
samba_guest_account: ansible-nas
# How Samba behaves when an unknown user connects, see Samba docs for more info
samba_map_to_guest: Bad Password
2019-09-17 17:38:17 +00:00
# The NetBIOS hostname used by Samba on your network
2022-08-20 09:27:46 +00:00
samba_netbios_name: "{{ ansible_nas_hostname }}"