infra/ansible/roles/services/tasks/main.yaml
shockrah fcf7ded218
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 7s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 22s
Removing docker resources for now
Migrating to terraform for better state control
2025-04-23 22:14:05 -07:00

12 lines
330 B
YAML

- name: Remove the docker containers and images
become: true
ansible.builtin.command:
cmd: docker compose down
args:
chdir: "{{ services.compose_dir }}"
register: down
changed_when: down.rc == 0
- name: Ensure docker dir is removed
ansible.builtin.file:
path: "{{ services.compose_dir }}"
state: absent