Refactor everything
This commit is contained in:
parent
2e100d290f
commit
3f2e60becf
69 changed files with 366 additions and 281 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue