Files
cloud-1/clear.yml
2026-03-31 22:18:02 +02:00

17 lines
348 B
YAML

- name: Clean up the instance
hosts: hosts
become: true
vars_files:
- vars.yml
tasks:
- name: Stop containers
ansible.builtin.command: "make -C {{ dest_dir }} fclean"
when: not ansible_check_mode
ignore_errors: true
- name: Remove app files
ansible.builtin.file:
state: absent
path: "{{ dest_dir }}"