Running ansible playbook in windows target

215 views
Skip to first unread message

Saranya Sridharan

unread,
Jul 12, 2019, 5:40:50 AM7/12/19
to ansibl...@googlegroups.com
Hi ,

     I have used ansible and deployed in the linux host , now I got a new requirement to deploy in windows host. I wanted to try using ssh method ( using openssh in windows) . I have set proper ssh connection and manually able to login. But when I try to run playbook ( sample ping) I am getting error saying log directory could not be created. I have created folder and trying ssh with same user even given full permission to that folder. But playbook is getting . Can anyone help me resolve this issue ? or Am I trying something wrong here? Please guide me with right steps.  Thanks in advance.

This is my ansible.cfg config part

remote_tmp     = "C:\Users\srsaranya\Desktop\ansible_logs"

This is my playbook:

- hosts: win
  tasks:
     - ping:

Tony Chia

unread,
Jul 12, 2019, 3:38:17 PM7/12/19
to Ansible Development
If the target host is a windows host, you should use the win_ping module not the ping module


Tony Chia

Reply all
Reply to author
Forward
0 new messages