re-organizing playbook deploy-db
This commit is contained in:
23
db/tasks/main.yml
Normal file
23
db/tasks/main.yml
Normal 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"]
|
Reference in New Issue
Block a user