ansible-nas/roles/ombi/tasks/main.yml
2021-01-19 17:18:12 +00:00

29 lines
937 B
YAML

---
- name: Create Ombi Directories
file:
path: "{{ ombi_config_directory }}"
state: directory
- name: Ombi Docker Container
docker_container:
name: ombi
image: linuxserver/ombi
pull: true
volumes:
- "{{ ombi_config_directory }}:/config:rw"
ports:
- "{{ ombi_port }}:3579"
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 }}"
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"