Skip to content

Instantly share code, notes, and snippets.

@tcpdump-examples
Created April 15, 2023 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcpdump-examples/6776c0c12c2ba26b918e027a42fabcb9 to your computer and use it in GitHub Desktop.
Save tcpdump-examples/6776c0c12c2ba26b918e027a42fabcb9 to your computer and use it in GitHub Desktop.
#https://www.howtouselinux.com/post/how-to-get-file-size-with-ansible
- name: Get file size
hosts: your_host
tasks:
- name: Check file size
stat:
path: /path/to/your/file
register: file_info
- name: Display file size
debug:
var: file_info.stat.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment