I am using Ansible to automate the deployment of a BAR file to IBM Integration Bus v9.0.0.4 Here is my playbook
you need to indent the shell line:
in general Ansible avoids doing logins, this will prevent many env
vars from loading, add to that the normal sudo behavior of also
removing/ignoring existing env vars and you'll probably get a very
'clean' environment.
You can use the 'environment' directive to set those vars for the task
you have directly.