Thank you Chris for that. I've got the whole error messages, but I don't
know how to resolve it:

<ide-qa-2-pc> WINRM RESULT <Response code 0, out "{ "changed": f", err
> "Starting t">
> <ide-qa-2-pc> WINRM STDOUT { "changed": false, "chocolatey command":
> "choco.exe install git -source https://chocolatey.org/api/v2/";, "msg":
> "Install error: ", "failed": true }
> <ide-qa-2-pc> WINRM STDERR *Starting the CLR failed with HRESULT
> 80004005.  *
> failed: [ide-qa-2-pc] => {"changed": false, "chocolatey command":
> "choco.exe install git -source https://chocolatey.org/api/v2/";, "failed":
> true}
> msg: Install error:
> FATAL: all hosts have already failed -- aborting
> PLAY RECAP
> ********************************************************************
>            to retry, use: --limit @/home/liferay/install-windows.retry


I'm using "source hacking/env-setup" to install my ansible, any suggestions
on this problem?

Looking forward for your help.




On Mon, Dec 15, 2014 at 12:38 PM, Chris Church <[email protected]>
wrote:
>
> If you run the same command with -vvvvv (5 v's), you'll get everything
> sent back on stderr instead of just "Starting t".  There may be something
> in that output to provide more details on what went wrong.
>
>
> On Fri, Dec 12, 2014 at 2:35 AM, Ashley(Yanan) Yuan <[email protected]>
> wrote:
>
>> Hello guys,
>>
>> I'm new to ansible. And I'm using ansible 1.9 to install apps to my
>> windows machine. But i've always run into this problem when using the
>> following command:
>>
>> ansible windows -m win_chocolatey -c winrm -u Administrator -a
>> 'package=notepadplusplus' --ask-vault-pass -vvvv
>>
>> error messages:
>>
>> <ide-qa-3-pc> WINRM RESULT <Response code 0, out "{ "changed": f", err
>>> "Starting t">
>>> ide-qa-3-pc | FAILED >> {
>>>     "changed": false,
>>>     "chocolatey command": "choco.exe install notepadplusplus -source
>>> https://chocolatey.org/api/v2/";,
>>>     "failed": true,
>>>     "msg": "Install error: "
>>> }
>>
>>
>> I've run into the same error when I run ansible-playbook. By the way, I
>> could using win_ping to connect my windows host and run win_msi to install
>> apps successfully.
>>
>> Why win_chocolatey failed? I'm really appreciate to any of your
>> suggestions.
>>
>> 在 2014年12月8日星期一UTC+8下午1时47分30秒,Rob White写道:
>>
>>> I'm having trouble with win_chocolatey module in a playbook.
>>>
>>> I upgraded from 1.7 to 1.9 and then ran the following successfully:
>>>
>>> ansible windows -i inventories/windows -m win_chocolatey -c winrm -u
>>>> administrator -k -a 'package=notepadplusplus'
>>>> SSH password:
>>>> 1.2.3.4 | success >> {
>>>>     "changed": true,
>>>>     "chocolatey command": "C:\\ProgramData\\chocolatey\\bin\\choco.exe
>>>> install notepadplusplus -source https://chocolatey.org/api/v2/";,
>>>>     "chocolatey_success": "true"
>>>
>>> }
>>>
>>>
>>> So then I added to a playbook as per the documentation but I get the
>>> following error:
>>>
>>> ansible-playbook hosts_windows.yml -i inventories/windows
>>>> ERROR: win_chocolatey is not a legal parameter in an Ansible task or
>>>> handler
>>>
>>>
>>> Why would ansible see the module, but ansible-playbook fail?
>>>
>>  --
>> 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/abcd960d-cdfb-4deb-b9a7-5a7f3980eadf%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/abcd960d-cdfb-4deb-b9a7-5a7f3980eadf%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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/mUAVtS3n-cw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAH%2BKTJ5OqJGrNNzCG6JZN94K2zJJZQv9n%2BsLt7wdCT1fLPH0JA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ5OqJGrNNzCG6JZN94K2zJJZQv9n%2BsLt7wdCT1fLPH0JA%40mail.gmail.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/CAOYwOt%2BLNJT%3DTFqwX_K%2BM4qtr4NROs8TL0Sd4z3%2BHuD23GRomg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to