I am creating a playbook to silently execute a installation package using Command module. But here I am getting playbook execution error. Below is my playbook sample.
Here my aim is to execute the myibm silent package only if the specified path is not present "/opt/IBM/myibm". But here i am not able to run this play successfully, but the local manual command execution is success. so the issue with my playbook.
- name: Silent installation
hosts: myserver
tasks:
- name: execute the WEB installation package
command: installc -installationDirectory /opt/IBM/packagefile
args:
chdir: /opt/im/linux.gtk.x86_64/
creates: /opt/IBM/myibm