Debian Codegraph @

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

raw symbols SCIP
1 - name: Prepare
2 hosts: all
3 gather_facts: false
4 tasks:
5 - name: Install urllib3 python package
6 ansible.builtin.command:
7 cmd: pip install urllib3
8 register: cmd_output
9 changed_when: cmd_output.rc == 0
10 failed_when: cmd_output.rc != 0
11
12 - name: Checking if path exists
13 ansible.builtin.stat:
14 path: "{{ lookup('env', 'redfish_firmware_image_local_path') }}"
15 register: directory_check
16 delegate_to: localhost
17
18 - name: Create directory if it doesn't exist
19 ansible.builtin.file:
20 path: "{{ lookup('env', 'redfish_firmware_image_local_path') }}"
21 state: directory
22 mode: "0755"
23 when: directory_check.stat.exists
24 delegate_to: localhost