If u want to copy from local to remote u should mention -host:
remote_host....i think u r using localhost

On Fri, 12 Apr 2019, 14:36 gottumukkala srija, <[email protected]> wrote:

> localhost is windows. And we are using win_copy for copying the file. Any
> alternative for this?
>
> On Friday, April 12, 2019 at 2:27:27 PM UTC+5:30, CORLEONE## wrote:
>>
>> its a module failure...is the localhost linux or windows.???...win_copy
>> works for windows ...for rest use copy module
>>
>> On Fri, 12 Apr 2019, 14:02 gottumukkala srija, <[email protected]> wrote:
>>
>>> Hi Jordan,
>>>
>>> Can you please describe it briefly? You want us to create a new VM and
>>> then point that IP to add_host?
>>>
>>> On Thursday, April 11, 2019 at 12:30:28 PM UTC+5:30, Jordan Borean wrote:
>>>>
>>>> If your inventory is targeting localhost then that means it's trying to
>>>> run a Windows module on the Ansible controller which won't work. You cna
>>>> use the azure_rm_virtualmachine module to spin up a host but then you will
>>>> have to use something like 'add_host' [1] to add the host for the current
>>>> execution then change the play to that new host.
>>>>
>>>> [1]
>>>> https://docs.ansible.com/ansible/latest/modules/add_host_module.html
>>>>
>>>> Thanks
>>>>
>>>> Jordan
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/8254df4c-e104-405f-b9b8-08080ce5e0e0%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/8254df4c-e104-405f-b9b8-08080ce5e0e0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/3ca787be-1724-4329-8dc1-1e5c58371122%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/3ca787be-1724-4329-8dc1-1e5c58371122%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEaHSXaMXKvQFsQ6-FJZK%3DDr_ZrMHUzoOzSmEofqMAma%3Db%2BCUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to