2017-11-21 22:18:35 +00:00
|
|
|
---
|
|
|
|
- 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:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ znc_port }}:6677"
|
2017-11-21 22:18:35 +00:00
|
|
|
env:
|
|
|
|
PUID: "{{ znc_user_id }}"
|
|
|
|
PGID: "{{ znc_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "znc"
|
|
|
|
traefik.frontend.rule: "Host:znc.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ znc_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "6677"
|