2019-04-12 22:31:27 +00:00
|
|
|
---
|
|
|
|
- name: The Lounge Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ thelounge_data_directory }}"
|
|
|
|
- "{{ thelounge_data_directory }}/users"
|
|
|
|
|
|
|
|
- name: Set up admin user
|
|
|
|
copy:
|
|
|
|
src: files/thelounge/users/admin.json
|
|
|
|
dest: "{{ thelounge_data_directory }}/users/admin.json"
|
|
|
|
mode: 0777
|
|
|
|
|
|
|
|
- name: The Lounge Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: thelounge
|
|
|
|
image: thelounge/thelounge:latest
|
|
|
|
pull: true
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ thelounge_port_one }}:9001"
|
|
|
|
- "{{ thelounge_port_two }}:9000"
|
2019-04-12 22:31:27 +00:00
|
|
|
volumes:
|
|
|
|
- "{{ thelounge_data_directory }}:/var/opt/thelounge"
|
|
|
|
- "/var/run/dbus:/var/run/dbus"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|
2019-04-14 16:28:21 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "thelounge"
|
|
|
|
traefik.frontend.rule: "Host:thelounge.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ thelounge_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "9000"
|
2019-04-12 22:31:27 +00:00
|
|
|
|