snackpot.yml - add minidlna containiner

set all ports with firewall_ports
This commit is contained in:
Nick Stokoe
2021-02-07 16:02:56 +00:00
parent 375172e34e
commit 3acc92043c
2 changed files with 30 additions and 4 deletions

View File

@@ -8,11 +8,20 @@
nextcloud_hostname: nc.noodlefactory.co.uk
nextcloud_base_dir: /var/www/html
nextcloud_data_dir: /var/www/data
nextcloud_ext_dir: /var/www/ext
nextcloud_db_user: nextcloud
nextcloud_db: nextcloud
letsencrypt_email: webmaster@noodlefactory.co.uk
docker_compose_base_dir: /opt/docker-compose
firewall_ports:
- "22"
- "80"
- "443"
# minidlna
- proto: udp
port: "1900"
- "8200"
tasks:
- hostname:
name: "{{ nextcloud_hostname }}"
@@ -31,13 +40,13 @@
name: root_sudoers
apply: { tags: root_sudoers }
tags: root_sudoers
- include_role:
name: ufw
apply: { tags: ufw }
tags: ufw
vars:
ufw_allow_in: ["22", "80", "443"]
ufw_allow: "{{ firewall_ports }}"
- include_role:
name: mrlesmithjr.netplan
@@ -76,7 +85,7 @@
src: "docker-compose/{{ item.path }}"
owner: root
group: root
mode: 0440
mode: 0660
backup: yes
notify: restart docker compose services
with_filetree: templates/docker-compose