Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/redfish_firmware/molecule/resources/cleanup.yml

raw symbols SCIP
1 - name: Cleanup
2 hosts: all
3 gather_facts: false
4 tasks:
5 - name: Check if directory exists
6 ansible.builtin.stat:
7 path: "{{ lookup('env', 'redfish_firmware_image_local_path') }}"
8 register: directory_check
9 delegate_to: localhost
10
11 - name: Delete directory if it exists
12 ansible.builtin.file:
13 path: "{{ lookup('env', 'redfish_firmware_image_local_path') }}"
14 state: absent
15 when: directory_check.stat.exists
16 delegate_to: localhost