This commit is contained in:
3
main.yml
3
main.yml
@@ -82,6 +82,9 @@
|
|||||||
- name: Deploy Pterodactyl
|
- name: Deploy Pterodactyl
|
||||||
import_tasks: tasks/pterodactyl.yml
|
import_tasks: tasks/pterodactyl.yml
|
||||||
tags: pterodactyl_deploy
|
tags: pterodactyl_deploy
|
||||||
|
- name: Deploy Termix
|
||||||
|
import_tasks: tasks/termix.yml
|
||||||
|
tags: termix_deploy
|
||||||
|
|
||||||
- hosts: jackson
|
- hosts: jackson
|
||||||
|
|
||||||
|
|||||||
34
tasks/termix.yml
Normal file
34
tasks/termix.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
- name: Create folder structure
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
owner: 999
|
||||||
|
with_items:
|
||||||
|
- "{{ data_dir }}/termix"
|
||||||
|
- "{{ data_dir }}/termix"
|
||||||
|
|
||||||
|
- name: Pull latest Termix Docker Image
|
||||||
|
docker_image:
|
||||||
|
name: ghcr.io/lukegus/termix
|
||||||
|
tag: latest
|
||||||
|
source: pull
|
||||||
|
|
||||||
|
- name: Create Termix Docker Container
|
||||||
|
docker_container:
|
||||||
|
name: termix
|
||||||
|
image: ghcr.io/lukegus/termix:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
recreate: true
|
||||||
|
networks:
|
||||||
|
- name: homelab
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/termix:/app/data"
|
||||||
|
env:
|
||||||
|
PORT: "8080"
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.http.routers.termix.rule: Host(`ssh.fntz.net`)
|
||||||
|
traefik.http.routers.termix.entrypoints: webSecure
|
||||||
|
traefik.http.routers.termix.tls.certresolver: letsencrypt
|
||||||
|
traefik.http.services.termix.loadbalancer.server.port: "8080"
|
||||||
Reference in New Issue
Block a user