Hello Brian,

Thanks for your valuable advise, i modifed my playbook with vars as the 
path of the installer  as below and still have the error.

---

 - name: Silent installation of "IBM Installation Manager"
   hosts: IHS
   vars:
     Pack_dir: /opt/CLM-Web-Installer-Linux-6.0.5/im/linux.gtk.x86_64
   tasks:
     - name: check for package
       stat:
         path: '{{ Pack_dir }}/installc'
     - name: execute the WEB installation package of Installation manger 
silently
       command: installc -installationDirectory 
/opt/IBM/InstallationManager -svP -acceptLicense
        creates: /opt/IBM/InstallationManager


On Monday, November 12, 2018 at 8:56:34 PM UTC+5:30, Brian Coca wrote:
>
> Ansible uses a 'batch login' by default, which might not source the 
> same files as an interactive one and not have the same PATH set, so 
> either use full path for installc or use the `environement:` keyword 
> to ensure the correct PATH is set. 
>
> -- 
> ---------- 
> Brian Coca 
>

-- 
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/6b2bc9e5-769a-4815-91c2-1083bb98360e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to