Hi guys,
I am trying to install git with chocolatey using a playbook:
- name: Install GIT
win_chocolatey:
name: git
state: present
It should be really simple when I run this. It should go through and no issues.
Although this gets quite tricky.
I get the following error when running this:
"stdout_lines": [
"Installing the following packages:",
"git",
"By installing you accept licenses for the packages.",
"",
"git.install v2.23.0 [Approved]",
"git.install package files install completed. Performing other
installation steps.",
"Using Git LFS",
"Installing 64-bit git.install...",
"WARNING: User (you) cancelled the installation.",
"ERROR: Running
[\"C:\\ProgramData\\chocolatey\\lib\\git.install\\tools\\Git-2.23.0-64-bit.exe\"
/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL /SP- /LOG
/COMPONENTS=\"icons,assoc,assoc_sh,ext,ext\\shellhere,ext\\guihere,gitlfs,icons\\quicklaunch\"
] was not successful. Exit code was '5'. Exit code indicates the following:
User (you) cancelled the installation..",
"git not installed. An error occurred during installation:",
" Exception of type 'System.OutOfMemoryException' was thrown.",
"git package files install completed. Performing other installation
steps.",
"The install of git was NOT successful.",
"git not installed. An error occurred during installation:",
" Exception of type 'System.OutOfMemoryException' was thrown.",
"",
"Chocolatey installed 0/2 packages. 2 packages failed.",
" See the log for details
(C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).",
"",
"Failures",
" - git.install (exited 5) - Error while running
'C:\\ProgramData\\chocolatey\\lib\\git.install\\tools\\chocolateyInstall.ps1'.",
" See log for details.",
" - git (exited 1) - git not installed. An error occurred during
installation:",
" Exception of type 'System.OutOfMemoryException' was thrown."
]
Then when I look at the log, I can see this on the machine:
12 15:23:06,611 3344 [DEBUG] - Received arguments: install git
--fail-on-unfound --yes --no-progress --limit-output --timeout 2700
If I run this manually in Powershell:
choco install git --fail-on-unfound --yes --no-progress --limit-output
--timeout 2700
It works fine and super good.
I can only assume that it is the module. Anybody can help me with this?
-Simon
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/YT1PR01MB3418049A982E596B733964EBB6B00%40YT1PR01MB3418.CANPRD01.PROD.OUTLOOK.COM.