mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
ce21999f46
NOTE: The majority of traefik ports were totally broken and would never have worked. It should be the external port there, not the internal container port!. Port conflicts were fixed.
47 lines
No EOL
1.1 KiB
YAML
47 lines
No EOL
1.1 KiB
YAML
---
|
|
- name: Create Heimdall group
|
|
group:
|
|
name: heimdall
|
|
gid: 1310
|
|
state: present
|
|
|
|
- name: Create Heimdall user
|
|
user:
|
|
name: heimdall
|
|
uid: 1310
|
|
state: present
|
|
system: yes
|
|
update_password: on_create
|
|
create_home: no
|
|
group: heimdall
|
|
|
|
- name: Create Heimdall Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: heimdall
|
|
group: heimdall
|
|
with_items:
|
|
- "{{ heimdall_data_directory }}"
|
|
|
|
- name: Create Heimdall container
|
|
docker_container:
|
|
name: heimdall
|
|
image: "{{ heimdall_docker_image }}"
|
|
pull: true
|
|
volumes:
|
|
- "{{ heimdall_data_directory }}:/config:rw"
|
|
env:
|
|
PUID: "1310"
|
|
PGID: "1310"
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
ports:
|
|
- "{{ heimdall_port_http }}:80"
|
|
- "{{ heimdall_port_https }}:443"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "heimdall"
|
|
traefik.frontend.rule: "Host:heimdall.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ heimdall_available_externally }}"
|
|
traefik.port: "{{ heimdall_port_http }}" |