ansible-nas/roles/ombi/tasks/main.yml

30 lines
937 B
YAML
Raw Normal View History

2021-01-14 17:59:54 +00:00
2019-11-21 03:28:11 +00:00
---
2021-01-14 17:59:54 +00:00
- name: Create Ombi Directories
2019-11-21 03:28:11 +00:00
file:
path: "{{ ombi_config_directory }}"
state: directory
2021-01-14 17:59:54 +00:00
- name: Ombi Docker Container
2019-11-21 03:28:11 +00:00
docker_container:
name: ombi
image: linuxserver/ombi
pull: true
volumes:
- "{{ ombi_config_directory }}:/config:rw"
ports:
2021-01-14 17:59:54 +00:00
- "{{ ombi_port }}:3579"
2019-11-21 03:28:11 +00:00
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ ombi_user_id }}"
PGID: "{{ ombi_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.enable: "{{ ombi_available_externally }}"
2021-01-19 17:18:12 +00:00
traefik.http.routers.ombi.rule: "Host(`{{ ombi_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.ombi.tls.certresolver: "letsencrypt"
traefik.http.routers.ombi.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.ombi.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.ombi.loadbalancer.server.port: "3579"