first commit

This commit is contained in:
root
2024-07-12 12:58:40 +02:00
commit 30fdad3be5
557 changed files with 11142 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
---
- name: run automation for windows
gather_facts: no
hosts: all
become_method: runas
tasks:
- name: get folder stats
ansible.windows.win_stat:
path: F:\Data\PON
register: folderinfo
- name: get folder stats
ansible.windows.win_stat:
path: F:\Data\GUE
register: folderinfo1
- name: output size
debug:
var: folderinfo.stat.size / 1048576
- name: output size
debug:
var: folderinfo1.stat.size / 1048576
- name: test this
debug:
msg: "Show output if pon is not empty"
when: folderinfo.stat.size != 0
- name: test1 this
debug:
msg: "Show output if gue is empty"
when: folderinfo1.stat.size == 0