DEV Community

Query Filter
Query Filter

Posted on

docker20

- name: "LOG: --- STARTING /TMP FILE SCAN ---"
  debug:
    msg: "Scanning /tmp directory to identify available RPMs..."

- name: "Identify all files in /tmp"
  find:
    paths: "/tmp"
    recurse: yes
    file_type: file
  register: found_files

- name: "LOG: --- FILES ENCOUNTERED IN /TMP ---"
  debug:
    msg: "{{ found_files.files | map(attribute='path') | list }}"

- name: "LOG: --- FINISHED /TMP FILE SCAN ---"
  debug:
    msg: "Scan complete. Found {{ found_files.matched }} files."
Enter fullscreen mode Exit fullscreen mode

Top comments (0)