re-organizing playbook deploy-db

This commit is contained in:
2022-10-08 18:15:53 +02:00
parent fd1d6b6261
commit a844e10970
22 changed files with 116 additions and 215 deletions

23
db/tasks/main.yml Normal file
View File

@@ -0,0 +1,23 @@
---
# tasks file for server
# include task db
- name: Deploy database postgresql and redis
ansible.builtin.import_tasks: deploy-db.yml
tags: ["start-with-deploy", "deploy"]
- name: Start db postgresql and redis
ansible.builtin.import_tasks: start-db.yml
tags: ["start-with-deploy", "start"]
- name: stop db postgresql and redis
ansible.builtin.import_tasks: stop-db.yml
tags: ["destroy", "stop"]
- name: Remove db
ansible.builtin.import_tasks: remove-db.yml
tags: ["destroy"]