cant run a IBM Installation manager install file using ansible.

324 views
Skip to first unread message

visar

unread,
Oct 31, 2018, 8:35:38 AM10/31/18
to Ansible Project
Hi Experts,

Am very beginner on Ansible and need your kind advise here.

 I want to execute one installer file of IBM installation manger for its silent installation and my play book is throwing error here. Could you please help me here.

The same command when i tried manually it got worked. So my playbook need to correct something here.

PlayBook
__________
---
 - name: Silent installation of "IBM Installation Manager"
   hosts: IHS
   tasks:
     - name: execyte the installation package of Installation manger silently with logs in Logdirectory
       command: /opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64/install --launcher.ini silent-install.ini -installationDirectory /opt/IBM/InstallationManager -installationDirectory  -svP -acceptLicense



Error:-
_______

fatal: [10.10.20.9]: FAILED! => {"changed": true, "cmd": ["/opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64/install", "--launcher.ini", "silent-install.ini", "-installationDirectory", "/opt/IBM/InstallationManager", "-installationDirectory", "-svP", "-acceptLicense"], "delta": "0:00:01.525515", "end": "2018-10-31 18:08:09.266214", "msg": "non-zero return code", "rc": 13, "start": "2018-10-31 18:08:07.740699", "stderr": "00:00.26 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged\n  Application error\n  org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]\n    at org.eclipse.swt.SWT.error(SWT.java:4394)\n    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)\n    at org.eclipse.swt.widgets.Display.create(Display.java:900)\n    at org.eclipse.swt.graphics.Device.<init>(Device.java:156)\n    ...", "stderr_lines": ["00:00.26 ERROR [main] org.eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory safeLogged", "  Application error", "  org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]", "    at org.eclipse.swt.SWT.error(SWT.java:4394)", "    at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)", "    at org.eclipse.swt.widgets.Display.create(Display.java:900)", "    at org.eclipse.swt.graphics.Device.<init>(Device.java:156)", "    ..."], "stdout": "Install:\nAn error has occurred. See the log file\n/opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64/configuration/1541023688055.log.", "stdout_lines": ["Install:", "An error has occurred. See the log file", "/opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64/configuration/1541023688055.log."]}

Mauricio Tavares

unread,
Oct 31, 2018, 8:40:09 AM10/31/18
to ansible...@googlegroups.com
From your log,

org.eclipse.swt.SWTError: No more handles
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e9a7b21b-d51a-4d9c-a26e-058bbcd605b0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

visar

unread,
Oct 31, 2018, 8:52:07 AM10/31/18
to Ansible Project
Hello Tavares,

Thanks for your quick reply, really appreciated.

But i didnt understand how to to resolve it.. 

I am able to manually execute this command-line (install --launcher.ini silent-install.ini -installationDirectory /opt/IBM/InstallationManager -installationDirectory  -svP -acceptLicense) by navigating to the location of the installer "install" in terminal(/opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64) and its success.
But my yaml file only failing. any suggestions?

jorgin...@gmail.com

unread,
Oct 31, 2018, 9:12:40 AM10/31/18
to ansible...@googlegroups.com
Hi

Based on your error message:

...     at org.eclipse.swt.widgets.Display.create(Display.java:900)", "    at org.eclipse.swt.graphics.Device.<init>(Device.java:156)", "    ...

It looks like the installer is failing when trying to bring up some window/dialog box of some kind....

When running through ansible, it will NOT have access to a graphical terminal...
Reply all
Reply to author
Forward
0 new messages