Files
cloud-1/clear.yml
2026-03-31 21:21:05 +02:00

17 lines
333 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
tasks:
- name: Remove app files
ansible.builtin.file:
state: absent
path: "{{ dest_dir }}"