From 5efa6934e37294ac4fa9e72ebfe0254be59acc80 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 21 Nov 2025 03:21:45 -0500 Subject: [PATCH] migrate tinyauth --- tasks/tinyauth.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tasks/tinyauth.yml b/tasks/tinyauth.yml index 2c1d95c..5fbe298 100644 --- a/tasks/tinyauth.yml +++ b/tasks/tinyauth.yml @@ -1,18 +1,16 @@ --- -- name: Pull latest Tinyauth Docker Image - docker_image: - name: ghcr.io/steveiliop56/tinyauth - tag: v4 - source: pull - -- name: Create Tinyauth Docker Container - docker_container: +- name: Deploy Tinyauth + include_role: + name: docker + vars: name: tinyauth - image: ghcr.io/steveiliop56/tinyauth:v4 - restart_policy: unless-stopped - recreate: true + image: + name: ghcr.io/steveiliop56/tinyauth + tag: v4 networks: - name: homelab + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" env: USERS: "{{ TINYAUTH_USERS }}" SECRET: "{{ TINYAUTH_SECRET }}" @@ -28,8 +26,6 @@ OAUTH_WHITELIST: "{{ TINYAUTH_OAUTH_WHITELIST }}" APP_TITLE: "{{ TINYAUTH_APP_TITLE }}" BACKGROUND_IMAGE: "{{ TINYAUTH_BACKGROUND_IMAGE }}" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock" labels: traefik.enable: "true" traefik.http.routers.tinyauth.rule: Host(`auth.fntz.net`)