add nfl proxy
All checks were successful
Deploy Containers / Prepare (push) Successful in 14s

This commit is contained in:
2025-08-14 12:34:31 -04:00
parent 887924a928
commit bb4e7464da
2 changed files with 25 additions and 0 deletions

View File

@@ -86,6 +86,9 @@
- name: Deploy Jackett - name: Deploy Jackett
import_tasks: tasks/jackett.yml import_tasks: tasks/jackett.yml
tags: jackett_deploy tags: jackett_deploy
- name: Deploy NFL Proxy
import_tasks: tasks/nfl-proxy.yml
tags: nfl-proxy_deploy
- hosts: jackson - hosts: jackson

22
tasks/nfl-proxy.yml Normal file
View File

@@ -0,0 +1,22 @@
---
- 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"
shell: |
pm2 delete nfl-proxy
- name: "Start new PM2 container"
args:
chdir: "{{ data_dir }}/nfl-proxy"
shell: |
pm2 start --name="nfl-proxy" "python3 main.py"