Created
April 15, 2023 08:28
-
-
Save tcpdump-examples/6776c0c12c2ba26b918e027a42fabcb9 to your computer and use it in GitHub Desktop.
Revisions
-
tcpdump-examples created this gist
Apr 15, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #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