mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 03:53:06 +00:00
28 lines
No EOL
655 B
YAML
28 lines
No EOL
655 B
YAML
---
|
|
- name: Create ZNC Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ znc_data_directory }}"
|
|
|
|
- name: ZNC
|
|
docker_container:
|
|
name: znc
|
|
image: znc
|
|
pull: true
|
|
volumes:
|
|
- "{{ znc_data_directory }}:/znc-data:rw"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
ports:
|
|
- "6677:6677"
|
|
env:
|
|
PUID: "{{ znc_user_id }}"
|
|
PGID: "{{ znc_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "znc"
|
|
traefik.frontend.rule: "Host:znc.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ znc_available_externally }}"
|
|
traefik.port: "6677" |