DEV Community

Query Filter
Query Filter

Posted on

docker19

- name: "DEBUG: List all files in /tmp to see what is actually there"
  find:
    paths: "/tmp"
    recurse: no
  register: tmp_contents

- name: "DEBUG: Print the names of files found in /tmp"
  debug:
    msg: "{{ tmp_contents.files | map(attribute='path') | list }}"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)