I am using Ansible to automate the deployment of a BAR file to IBM Integration Bus v9.0.0.4 Here is my playbook
---
- hosts: 10.0.0.5
remote_user: jamie
become: yes
become_user: mqm
tasks:
- name: deploy bar
shell: mqsideploy -q IB9QMGR -e EG -a MyBar.bar
The above playbook results in the following error:
mqsideploy: command not found
If I manually remote into the server the following gets echoed to the console which indicates that the server is loading additional paths into the environment for the mom user.
sudo su - mqm
[sudo] password for jamie:
MQSI 9.0.0.4
/opt/ibm/mqsi/9.0.0.4
BIP1284I: Broker 'IB9BRK' on queue manager 'IB9QMGR' is running.
BIP8071I: Successful command completion.
QMNAME(IB9QMGR) STATUS(Running)
I am curious why ansible is not loading the environment?