Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notepadplusplus installation failed #1245

Closed
arunjan2019 opened this issue Mar 15, 2019 · 7 comments
Closed

Notepadplusplus installation failed #1245

arunjan2019 opened this issue Mar 15, 2019 · 7 comments

Comments

@arunjan2019
Copy link

I used Chocolatey notepadplusplus installation in Ansible play book like below. It worked well for many days but today it throws this error. I haven't changed this code and its reference main.yml file too.

  • name: Ensure notepad++ is installed using chocolatey
    win_chocolatey:
    name: notepadplusplus
    state: present

I would like to understand why this package is failed, what is the better solution?

@arunjan2019
Copy link
Author

It throws the following error...
fatal: FAILED! => {"changed": false, "module_stderr": "\r\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 2}
vsphere-iso: to retry, use: --limit @/tmp/packer/playbook/build-agents.retry

@AdmiringWorm
Copy link
Member

Could be due to the new chocolatey version.
See chocolatey/choco#1758

Closing this as I do not believe it to be package related.

@arunjan2019
Copy link
Author

@AdmiringWorm - Appreciate your quick update. Referring the 1758, it asks to use the following code. but in Ansible playbook how I can use this?
choco feature disable --name="'useEnhancedExitCodes'"

@AdmiringWorm
Copy link
Member

Unfortunately, I do not have any experience with ansible so I do not know.

This is something you probably have to ask the ansible people.

@ferventcoder
Copy link
Contributor

@jborean93 ^^ curiosity here on how to disable a feature

@jborean93
Copy link

jborean93 commented Mar 16, 2019

I've posted an example of how to continue to install Chocolatey, disable the enhanced exit code features and then install your package like normal here ansible/ansible#53860 (comment). This is only required until the next release of Ansible is made where the fix has already been applied.

@ferventcoder
Copy link
Contributor

Note that the default for enhanced exit codes was turned to off for Chocolatey v0.10.14. This is for anyone that finds this issue as most folks commenting here are already aware. chocolatey/choco#1784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants