Skip to content

Instantly share code, notes, and snippets.

View howtouselinux's full-sized avatar

howtouselinux howtouselinux

View GitHub Profile
- name: Get file list and sizes
hosts: your_host
vars:
directory_path: /path/to/your/directory # Update the directory path
tasks:
- name: Find files
find:
paths: "{{ directory_path }}"
file_type: file
recurse: yes