Added windows agent
This commit is contained in:
20
training/windows.yml
Normal file
20
training/windows.yml
Normal 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
|
||||
Reference in New Issue
Block a user