Added windows agent

This commit is contained in:
2025-11-20 13:01:18 +01:00
parent 9c771dee28
commit efc6baf596
3 changed files with 40 additions and 0 deletions

20
training/windows.yml Normal file
View File

@@ -0,0 +1,20 @@
---
- name: Prueba de conexión a Windows
hosts: windows
tasks:
- name: Hacer ping a máquina
ansible.windows.win_ping:
- name: run the setup facts
ansible.windows.setup:
- name: Copy a single file
ansible.windows.win_copy:
src: prueba.txt
dest: C:\Users\vboxuser\Desktop\escritorio.txt
- name: Copy a single file where the source is on the remote host
ansible.windows.win_copy:
src: C:\Users\vboxuser\Desktop\escritorio.txt
dest: C:\Users\vboxuser\Desktop\escritorioSegundo.txt
remote_src: true