Want to change the installatin path using win_package

21 views
Skip to first unread message

shya...@gmail.com

unread,
Jan 20, 2019, 9:18:55 AM1/20/19
to Ansible Project
Hi,

I want to change the new software installation path from C:\ to D:\ but the installation is going to the C:\ drive and the following playbook not worked. The package is at shared network path.


- name: installation of the package in D drive
   win_package: 
     path: \\Network\\path\\rabbitmq.exe
     arguments: "INSTALLDIR=D:\Program Files"
  

Also tried the following

- name: installation of the package in D drive
  win_package:
    path: \\Network\\path\\rabbitmq.exe
    arguments:
      - /D=D:\\Program Files
      - /install
   Can any one help.
Thanks and Regards,
Shyam



Varun Chopra

unread,
Jan 20, 2019, 12:12:43 PM1/20/19
to Ansible Project
- name: installation of the package in D drive
  win_package:
     path: \\Network\\path\\rabbitmq.exe
    arguments: INSTALLDIR="D:\Program Files"

should work. Please post the verbose output here. (use -vvvv)

Varun Chopra

unread,
Jan 20, 2019, 12:15:03 PM1/20/19
to Ansible Project
Also might wanna add /q

shya...@gmail.com

unread,
Jan 20, 2019, 12:22:01 PM1/20/19
to Ansible Project

Hi Varun,

I will try this.

Thank you,
Shyam

Reply all
Reply to author
Forward
0 new messages