Ansible Playbook to install software on desired location

39 views
Skip to first unread message

Rahul Rawat

unread,
Jan 9, 2020, 2:16:06 AM1/9/20
to Ansible Project
Hi,

What parameter should we use to install .exe on desired location. Means in root of C drive not in Program Files

regards,
Rahul 

Rahul Rawat

unread,
Jan 9, 2020, 5:14:02 AM1/9/20
to Ansible Project
By default installation files create in C:\Program Files\Python37 folder.

i need C:\Python37

This is my playbook.

---
### python setup
- name: copying python
  win_copy:
    src: files/python.exe
    dest: C:\python.exe
#  when: "'aiservice' in group_names"

- name: Install Python
  win_shell: C:\python.exe Include_tcltk=0 InstallAllUsers=1 /quiet /norestart TARGETDIR=C:\Python37 --wait
#  when: "'aiservice' in group_names"


regards,
Rahul 
Reply all
Reply to author
Forward
0 new messages