This repository was archived by the owner on May 27, 2024. It is now read-only.

Description
i have created these playfbook and invetory but it does not work when iexecute ansible-playbook -i inventory playbook.yml
inventory :
[windows]
10.x.x.x
[windows:vars]
ansible_user=xxxx
ansible_password=xxxx
ansible_winrm_transport: basic
playbook.yml
-
hosts: windows
tasks:
- name: Copy file from switch to Windows server
win_copy:
src: "/path/file.txt"
dest: 'D:\config'
delegate_to: localhost # Run this task on the Ansible server
what i should add ?????