# win\_package installation of git

**URL:** <https://forum.ansible.com/t/win-package-installation-of-git/22279>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [August 12, 2016, 7:05am UTC](https://forum.ansible.com/t/win-package-installation-of-git/22279 "2016-08-12T07:05:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Pekarovic](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@Tomas\_Pekarovic](https://forum.ansible.com/u/Tomas_Pekarovic)\
**Post date:** [August 12, 2016, 7:05am UTC](https://forum.ansible.com/t/win-package-installation-of-git/22279/1 "2016-08-12T07:05:13Z")

</div>

Hi,

i’m using ansible 2.1.1.0 on ubuntu 16.04.  
Problem that I found is that I can’t install any package using win\_package .  
I’m trying to install git on windows 7 host.

playbook part:

- name: Installation of git x64

win\_package:

name: GIT

path: “[https://github.com/git-for-windows/git/releases/download/v2.9.2.windows.1/Git-2.9.2-64-bit.exe](https://github.com/git-for-windows/git/releases/download/v2.9.2.windows.1/Git-2.9.2-64-bit.exe)”

product\_id: “Git\_is1”

arguments: “/silent /GitAndUnixToolsOnPath”

when: ansible\_architecture == “64-bit”

task freezes for eternity in this:

TASK [Installation of git x64] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

**task path: /home/user/devel.yml:14**

I can’t get any result from this.

When I’m going on machine into temporary ansible folders. There is a win\_package.ps1 . When I start it, it runs and install and get results from this.

So in my opinion there will be error somewhere in the communication with the server??

other win\_ tasks works fine (eg. win\_file)

I also tried installation from local path (in path: “c:\install\git.exe”) but it is the same.

Can somebody help me with this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [August 14, 2016, 7:31pm UTC](https://forum.ansible.com/t/win-package-installation-of-git/22279/2 "2016-08-14T19:31:39Z")

</div>

I use the win\_chocolatey module for as much as I can, installing git works great with it. win\_package relies on installation packages that behave nicely, and they don’t always do that…
