22 lines
448 B
YAML
22 lines
448 B
YAML
# remove db
|
|
|
|
- name: Stopping existing service
|
|
community.docker.docker_compose:
|
|
project_src: "{{ project_src }}"
|
|
state: absent
|
|
remove_volumes: yes
|
|
remove_images: local
|
|
register: output
|
|
|
|
- name: Debug output
|
|
debug:
|
|
var: output
|
|
|
|
- name: Remove project
|
|
file:
|
|
path: "{{ project_src }}"
|
|
state: absent
|
|
vars:
|
|
ansible_become: yes
|
|
ansible_become_method: sudo
|
|
ansible_become_password: "{{ sudo_password }}" |