Skip to content
Snippets Groups Projects
Commit 99c61ba1 authored by 3d's avatar 3d
Browse files

deploy tasmoadmin

parent 0518117b
No related branches found
No related tags found
No related merge requests found
---
- name: "create folder struct for {{ servicename }}"
ansible.builtin.file:
path: "{{ item }}"
state: "directory"
recurse: yes
owner: 1000
group: 1000
with_items:
- "{{ basedir }}/data/"
- name: "copy config files file for {{ servicename }}"
ansible.builtin.template:
src: "{{ item }}"
dest: "{{ basedir }}/{{ item }}"
mode: '0755'
with_items:
- "docker-compose.yml"
- name: "start {{ servicename }} with docker-compose"
community.docker.docker_compose:
state: present
project_src: "{{ basedir }}"
version: "3"
services:
app:
image: ghcr.io/tasmoadmin/tasmoadmin:latest
restart: always
volumes:
- "{{ basedir }}/data:/data"
environment:
- TZ=Europe/Berlin
labels:
- traefik.enable=true
- traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`)
- traefik.http.routers.{{ servicename }}.entrypoints=websecure
- traefik.http.services.{{ servicename }}.loadbalancer.server.port=80
networks:
- default
- web
networks:
web:
external: true
...@@ -102,6 +102,12 @@ ...@@ -102,6 +102,12 @@
basedir: /srv/graylog, basedir: /srv/graylog,
domain: "graylog.warpzone.lan" domain: "graylog.warpzone.lan"
} }
- {
role: intern/docker_tasmoadmin, tags: tasmoadmin,
servicename: tasmoadmin,
basedir: /srv/tasmoadmin,
domain: "tasmoadmin.warpzone.lan"
}
- hosts: webserver - hosts: webserver
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment