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