Created
April 15, 2023 08:28
-
-
Save tcpdump-examples/6776c0c12c2ba26b918e027a42fabcb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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