re-organizing playbook deploy-db
This commit is contained in:
18
db/tasks/remove-db.yml
Normal file
18
db/tasks/remove-db.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# remove db
|
||||
|
||||
- name: Stopping existing service
|
||||
community.docker.docker_compose:
|
||||
project_src: /home/valentin/db
|
||||
state: absent
|
||||
remove_volumes: yes
|
||||
remove_images: local
|
||||
register: output
|
||||
|
||||
- name: Debug output
|
||||
debug:
|
||||
var: output
|
||||
|
||||
- name: Remove project covas db
|
||||
file:
|
||||
path: /home/valentin/db
|
||||
state: absent
|
Reference in New Issue
Block a user