Added teardown
This commit is contained in:
parent
5a8faf7d56
commit
e50d1309af
1 changed files with 15 additions and 0 deletions
15
teardown.yml
Normal file
15
teardown.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Creating compose from template
|
||||
hosts: server
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Tearing down Compose file
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/infra
|
||||
files:
|
||||
- compose.yml
|
||||
state: absent
|
||||
remove_volumes: true
|
||||
|
||||
- name: Deleting infra folder contents
|
||||
ansible.builtin.command: rm -r /opt/infra/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue