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? -- 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/6dc5d44e-e95b-4147-be54-a82f04e94c99%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
