Refactor everything

This commit is contained in:
Tobias Reisinger 2023-12-14 02:20:13 +01:00
parent 2e100d290f
commit 3f2e60becf
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
69 changed files with 366 additions and 281 deletions
_ansible/roles/tinytinyrss

View file

@ -1,9 +1,12 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
tags:
- tinytinyrss
- tt-rss
- news
vars:
svc: "{{ tinytinyrss_svc }}"
env: "{{ tinytinyrss_env }}"
compose: "{{ tinytinyrss_compose }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml

View file

@ -1,5 +1,5 @@
---
svc:
tinytinyrss_svc:
domain: rss.serguzim.me
name: tinytinyrss
port: 80
@ -10,7 +10,7 @@ svc:
user: "{{ vault_tinytinyrss.db.user }}"
pass: "{{ vault_tinytinyrss.db.pass }}"
svc_env:
tinytinyrss_env:
TTRSS_DB_TYPE: pgsql
TTRSS_DB_HOST: "{{ svc.db.host }}"
TTRSS_DB_NAME: "{{ svc.db.database }}"
@ -19,10 +19,9 @@ svc_env:
TTRSS_SELF_URL_PATH: https://{{ svc.domain }}/tt-rss/
compose:
tinytinyrss_compose:
watchtower: false
image: cthulhoo/ttrss-web-nginx
env: true
volumes:
- app:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf