-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.
Description
Checklist
- I confirm there are no unresolved issues reported on the Chocolatey Status page.
- I have verified this is the correct repository for opening this issue.
- I have verified no other issues exist related to my problem.
- I have verified this is not an issue for a specific package.
- I have verified this issue is not security related.
- I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
When using the "chocolatey.win_chocolatey" module with the following parameters to remove the package from chocolatey without attempting to uninstall the program is not working:
- name: Remove/Not Uninstall Chocolatey Package
chocolatey.chocolatey.win_chocolatey:
name: splunkforwarder
state: absent
choco_args: --skipautouninstallerHave tried this also:
- name: Remove/Not Uninstall Chocolatey Package
chocolatey.chocolatey.win_chocolatey:
name: splunkforwarder
state: absent
choco_args:
--skipautouninstallerWhat is Expected?
Running this task will Remove Package from Chocolatey but NOT uninstall the program:
- name: Remove/Not Uninstall Chocolatey Package
chocolatey.chocolatey.win_chocolatey:
name: splunkforwarder
state: absent
choco_args:
--skipautouninstallerHow Did You Get This To Happen?
- Running "
choco uninstall splunkforwarder --skipautouninstaller" from the server itself DOES Remove from
Chocolatey but NOT uninstall the program - Ran Ansible Job with these parameters:
- name: Remove/Not Uninstall Chocolatey Package
chocolatey.chocolatey.win_chocolatey:
name: splunkforwarder
state: absent
choco_args: --skipautouninstaller- Have tried this also:
- name: Remove/Not Uninstall Chocolatey Package
chocolatey.chocolatey.win_chocolatey:
name: package1
state: absent
choco_args:
--skipautouninstaller- JSON Output from Task shows the parameter being passed, but Autoinstaller is still running and uninstalling the package.
{
"changed": true,
"invocation": {
"module_args": {
"checksum_type": null,
"override_args": false,
"allow_prerelease": false,
"source_username": null,
"allow_multiple": false,
"timeout": 2700,
"remove_dependencies": false,
"proxy_url": null,
"source_password": null,
"proxy_password": null,
"checksum64": null,
"install_args": null,
"name": [
"splunkforwarder"
],
"checksum": null,
"version": null,
"skip_scripts": false,
"bootstrap_tls_version": [
"tls12",
"tls13"
],
"force": false,
"choco_args": [
"--skipautouninstaller"
],
"architecture": "default",
"proxy_username": null,
"pinned": null,
"validate_certs": true,
"ignore_checksums": false,
"allow_empty_checksums": false,
"bootstrap_script": null,
"checksum_type64": null,
"state": "absent",
"ignore_dependencies": false,
"source": null,
"package_params": null
}
},
"rc": 0,
"choco_cli_version": "1.4.0",
"stdout": "Chocolatey v1.4.0 Business\r\nUninstalling the following packages:\r\nsplunkforwarder\r\n\r\nsplunkforwarder v9.3.2.0\r\n Running auto uninstaller...\r\n Auto uninstaller has successfully uninstalled splunkforwarder or detected previous uninstall.\r\n splunkforwarder has been successfully uninstalled.\r\n\r\nChocolatey uninstalled 1/1 packages. \r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n",
"stdout_lines": [
"Chocolatey v1.4.0 Business",
"Uninstalling the following packages:",
"splunkforwarder",
"",
"splunkforwarder v9.3.2.0",
" Running auto uninstaller...",
" Auto uninstaller has successfully uninstalled splunkforwarder or detected previous uninstall.",
" splunkforwarder has been successfully uninstalled.",
"",
"Chocolatey uninstalled 1/1 packages. ",
" See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log)."
],
"_ansible_no_log": false
}
System Details
- Operating System: Windows 10 or Windows Server 2019/2022
- Windows PowerShell version: 5.x
- Chocolatey CLI Version: 1.4.0
- Chocolatey Licensed Extension version: 1.40
- Chocolatey License type: Business
- Terminal/Emulator: PowerShell / Ansible
Installed Packages
PS C:\Windows\system32> choco list -lo
Chocolatey v1.4.0 Business
7zip 24.9.0
7zip.install 24.9.0
bloomberg 2.0.0.0
chocolatey 1.4.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-license 2025.12.23.1800
chocolatey.extension 5.0.3
citrix-workspace 24.9.10.28
crowdstrike 7.16.18613.0
GoogleChrome 134.0.6998.178
jre8 8.0.4410.7
jre8x86 8.0.4410.7
microsoft-edge 134.0.3124.83
microsoft-teams 1.36.55205.0
notepadplusplus 8.7.7
notepadplusplus.install 8.7.7
webrtc 1.54.2408.19001
webview2-runtime 134.0.3124.85Output Log
Sensitive data in logAdditional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugIssues where something has happened which was not expected or intended.Issues where something has happened which was not expected or intended.