From 2eb2fc9eb0b7cdff127b6e62466de977680b21fc Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 7 Nov 2025 02:01:49 -0500 Subject: [PATCH] remove some unused services --- main.yml | 9 ----- tasks/mastodon.yml | 99 --------------------------------------------- tasks/nfl-proxy.yml | 23 ----------- tasks/ntfy.yml | 36 ----------------- 4 files changed, 167 deletions(-) delete mode 100644 tasks/mastodon.yml delete mode 100644 tasks/nfl-proxy.yml delete mode 100644 tasks/ntfy.yml diff --git a/main.yml b/main.yml index 5b09e16..8cff5c3 100644 --- a/main.yml +++ b/main.yml @@ -28,9 +28,6 @@ - name: Deploy PocketID import_tasks: tasks/pocketid.yml tags: pocketid_deploy - - name: Deploy Ntfy - import_tasks: tasks/ntfy.yml - tags: ntfy_deploy - name: Deploy NZBGet import_tasks: tasks/nzbget.yml tags: nzbget_deploy @@ -73,9 +70,6 @@ - name: Deploy Jackett import_tasks: tasks/jackett.yml tags: jackett_deploy - - name: Deploy NFL Proxy - import_tasks: tasks/nfl-proxy.yml - tags: nfl-proxy_deploy - name: Deploy Uptime Kuma import_tasks: tasks/uptime-kuma.yml tags: uptime-kuma_deploy @@ -115,9 +109,6 @@ - name: Deploy Owncloud import_tasks: tasks/owncloud.yml tags: owncloud_deploy - - name: Deploy Mastodon - import_tasks: tasks/mastodon.yml - tags: mastodon_deploy - hosts: nas diff --git a/tasks/mastodon.yml b/tasks/mastodon.yml deleted file mode 100644 index c1bf932..0000000 --- a/tasks/mastodon.yml +++ /dev/null @@ -1,99 +0,0 @@ ---- -- name: Create folder structure - file: - path: "{{ item }}" - state: directory - with_items: - - "{{ data_dir }}/mastodon" - - "{{ data_dir }}/mastodon/db" - - "{{ data_dir }}/mastodon/redis" - - "{{ data_dir }}/mastodon/public" - -- name: Create Mastodon Network - docker_network: - name: mastodon - -- name: Pull latest Postgres Docker Image - docker_image: - name: postgres - tag: 14-alpine - source: pull -- name: Pull latest Redis Docker Image - docker_image: - name: redis - tag: 7-alpine - source: pull -- name: Pull latest Mastodon Docker Image - docker_image: - name: lscr.io/linuxserver/mastodon - tag: latest - source: pull - -- name: Create Mastodon DB Container - docker_container: - name: mastodon_db - image: postgres:14-alpine - recreate: true - restart_policy: unless-stopped - networks: - - name: mastodon - volumes: - - "{{ data_dir }}/mastodon/db:/var/lib/postgresql/data" - healthcheck: - test: CMD pg_isready -U postgres - env: - POSTGRES_HOST_AUTH_METHOD: "trust" - POSTGRES_USER: mastodon - POSTGRES_PASSWORD: "{{ MASTODON_DB_PASS }}" - POSTGRES_DB: mastodon - -- name: Create Mastodon Redis Container - docker_container: - name: mastodon_redis - image: redis:7-alpine - recreate: true - restart_policy: unless-stopped - healthcheck: - test: CMD redis-cli ping - networks: - - name: mastodon - volumes: - - "{{ data_dir }}/mastodon/redis:/data" - -- name: Create Mastodon Container - docker_container: - name: mastodon - image: lscr.io/linuxserver/mastodon:latest - recreate: true - restart_policy: unless-stopped - networks: - - name: mastodon - - name: "{{ docker_network_name }}" - volumes: - - "{{ data_dir }}/mastodon/public:/config" - env: - PUID: "{{ PUID }}" - PGID: "{{ PGID }}" - TZ: "{{ TZ }}" - LOCAL_DOMAIN: "{{ MASTODON_LOCAL_DOMAIN }}" - REDIS_HOST: "mastodon_redis" - REDIS_PORT: "6379" - DB_HOST: "mastodon_db" - DB_USER: "mastodon" - DB_PASS: "{{ MASTODON_DB_PASS }}" - DB_PORT: "5432" - ES_ENABLED: "false" - SECRET_KEY_BASE: "{{ MASTODON_SECRET_KEY_BASE }}" - VAPID_PRIVATE_KEY: "{{ MASTODON_VAPID_PRIVATE_KEY }}" - VAPID_PUBLIC_KEY: "{{ MASTODON_VAPID_PUBLIC_KEY }}" - OTP_SECRET: "{{ MASTODON_OTP_SECRET }}" - S3_ENABLED: "false" - ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY: "{{ MASTODON_ARE_DETERMINISTIC }}" - ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT: "{{ MASTODON_ARE_KEY_DERIVATION }}" - ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY: "{{ MASTODON_ARE_PRIMARY }}" - labels: - traefik.enable: "true" - traefik.http.routers.mst.rule: Host(`mst.fntz.net`) - traefik.http.routers.mst.entrypoints: webSecure - traefik.http.routers.mst.tls.certresolver: letsencrypt - traefik.http.services.mst.loadbalancer.server.url: "https://mastodon" diff --git a/tasks/nfl-proxy.yml b/tasks/nfl-proxy.yml deleted file mode 100644 index ec2cb04..0000000 --- a/tasks/nfl-proxy.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -- name: Create folder structure - file: - path: "{{ item }}" - state: directory - with_items: - - "{{ data_dir }}/nfl-proxy" - -- name: "Clone latest NFL-Proxy" - git: - repo: "git@git.alexav.gg:alex/nfl-proxy.git" - dest: "{{ data_dir }}/nfl-proxy" - -- name: "Stop & remove existing PM2 containers" - ignore_errors: yes - shell: | - /home/alex/.nvm/versions/node/v24.4.0/bin/pm2 delete "nfl-proxy" - -- name: "Start new PM2 container" - args: - chdir: "{{ data_dir }}/nfl-proxy" - shell: | - /home/alex/.nvm/versions/node/v24.4.0/bin/pm2 start --name="nfl-proxy" "venv/bin/activate && venv/bin/python main.py" diff --git a/tasks/ntfy.yml b/tasks/ntfy.yml deleted file mode 100644 index 13d5658..0000000 --- a/tasks/ntfy.yml +++ /dev/null @@ -1,36 +0,0 @@ ---- -- name: Create folder structure - file: - path: "{{ item }}" - state: directory - with_items: - - "{{ data_dir }}/ntfy" - - "{{ data_dir }}/ntfy/cache" - - "{{ data_dir }}/ntfy/data" - -- name: Pull latest Ntfy Docker Image - docker_image: - name: binwiederhier/ntfy - tag: latest - source: pull - -- name: Create Ntfy Docker Container - docker_container: - name: ntfy - image: binwiederhier/ntfy - command: serve - restart_policy: unless-stopped - recreate: true - networks: - - name: homelab - volumes: - - "{{ data_dir }}/ntfy/cache:/var/cache/ntfy" - - "{{ data_dir }}/ntfy/data:/etc/ntfy" - env: - UPSTREAM_BASE_URL: "{{ NTFY_UPSTREAM_BASE_URL }}" - BASE_URL: "{{ NTFY_BASE_URL }}" - labels: - traefik.enable: "true" - traefik.http.routers.ntfy.rule: Host(`push.fntz.net`) - traefik.http.routers.ntfy.entrypoints: webSecure - traefik.http.routers.ntfy.tls.certresolver: letsencrypt