You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
win_copy:
src: "/path/file.txt"
dest: 'D:\config'
delegate_to: localhost # Run this task on the Ansible server
what i should add ?????