I recommend using win_package instead of win_msi
If you still want to use win_msi I recommend setting wait: true as this
seems to make it run more reliably on Server 2008 R2 / Powershell 3.0.
However I haven't seen your case where it appears to fail silently. I
assume you have previously downloaded the 7z1602-x64.msi to c:\Path folder?
- name: Install 7 zip
win_msi:
extra_args: "/quiet"
path: 'C:\path\7z1602-x64.msi'
state: present
wait: true
Might be worth running your playbook with -v to see if there is any log
output produced.
One other thing to check is that your windows host is 64-bit - if it isn't
you'll need the x86.msi instead of the x64.msi file
Hope this helps,
Jon
On Tuesday, July 26, 2016 at 3:09:34 PM UTC+1, megha sharma wrote:
>
> Hi,
>
> I am using Ansible 2.1.0.0 and trying to run the below playbook
>
> - name: Install 7 zip
> win_msi:
> extra_args: "/quiet"
> path: 'C:\path\7z1602-x64.msi'
> state: present
>
>
> Output:
> TASK [Install 7 zip]
> ***********************************************************
> changed: [10.155.208.130]
>
> PLAY RECAP
> *********************************************************************
> 10.155.208.130 : ok=3 changed=1 unreachable=0 failed=0
>
>
> But installation of the 7 zip is not happening.
> Please help.
>
--
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/f3e88957-9399-4903-82b9-1b8f9608f879%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.