win_package

42 views
Skip to first unread message

Manish Kumar

unread,
Sep 9, 2019, 7:29:02 AM9/9/19
to Ansible Project
Dear All,

I am getting a very weird result while using win_package,  It is succeeding and no error is visible on ansible command prompt however the package is not installed while checking manually .

We are able to install notepad++ successfully  but other application setup.exe  is having issue with no error .

What could be the reason and how it can be resolved ?  Any help is much appreciated .

Thanks,
Manish


Manish Kumar

unread,
Sep 9, 2019, 7:44:30 AM9/9/19
to Ansible Project
Results:

TASK [Install the win service] ***************************************************************************************

task path: /U01/automation/playbooks/uninstal.yml:7

changed: [10.130.2.10] => {

    "changed": true,

    "exit_code": 0,

    "failed": false,

    "rc": 0,

    "reboot_required": false,

    "restart_required": false

}

META: ran handlers

META: ran handlers

 

PLAY RECAP *******************************************************************************************************************

10.130.2.10               : ok=1    changed=1    unreachable=0    failed=0   

Thanks,
Manish


Manish Kumar

unread,
Sep 9, 2019, 11:25:08 AM9/9/19
to Ansible Project
Can Anyone help on this ?

MKPhil

unread,
Sep 9, 2019, 11:36:11 AM9/9/19
to Ansible Project
Can you share your playbook so we can see the command you are running?

Manish Kumar

unread,
Sep 10, 2019, 2:21:23 AM9/10/19
to Ansible Project
here is the playbook . Looks like silent feature is disabled  so is there any other option in ansible to install using argument just like how we do using gui.

---
- name: install  Server
  gather_facts: no
  hosts: win
  tasks:
    - name: Install the  service
      win_package:
        path: D:\Software_InstallationSets\Installset\SETUP.EXE
        creates_path: D:\Product\SETUP.EXE
        state: present
        arguments: /S
Reply all
Reply to author
Forward
0 new messages