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/tandoor

View file

@ -1,8 +1,12 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
tags:
- tandoor
- recipies
vars:
svc: "{{ tandoor_svc }}"
env: "{{ tandoor_env }}"
compose: "{{ tandoor_compose }}"
block:
- name: Import tasks to deploy common service
ansible.builtin.import_tasks: tasks/deploy-common-service.yml

View file

@ -1,5 +1,5 @@
---
svc:
tandoor_svc:
domain: recipes.serguzim.me
name: tandoor
port: 80
@ -10,7 +10,7 @@ svc:
user: "{{ vault_tandoor.db.user }}"
pass: "{{ vault_tandoor.db.pass }}"
svc_env:
tandoor_env:
DEBUG: 0
SQL_DEBUG: 0
@ -35,10 +35,9 @@ svc_env:
SOCIAL_DEFAULT_ACCESS: 1
SOCIAL_DEFAULT_GROUP: guest
compose:
tandoor_compose:
watchtower: true
image: nginx:mainline-alpine
env: true
volumes:
- nginx_config:/etc/nginx/conf.d:ro
- staticfiles:/static