20 lines
582 B
YAML
20 lines
582 B
YAML
---
|
|
- 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 |