17 lines
348 B
YAML
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 }}"
|