Files
startusingansible/training/windows-delete-files.yml

13 lines
396 B
YAML

---
- name: Prueba de conexión a Windows
hosts: windows
tasks:
- name: Borrar fichero escritorioSegundo en Windows
ansible.windows.win_file:
path: C:\Users\AnsibleNode\Desktop\escritorioSegundo.txt
state: absent
- name: Borrar fichero escritorio en Windows
ansible.windows.win_file:
src: C:\Users\AnsibleNode\Desktop\escritorio.txt
state: absent