Here is the frustrating thing as seen below. Logging directly in as myself clearly pbrun is found in the path, but ansible fails at the same.
This is an intersting point -- how is the scope of the path set for the login session from ansible. it's different from when I see directly. *FROM ANSIBLE* $ ansible all -i myhosts2 -m shell -a 'which pbrun' host1.mydom.com | FAILED | rc=1 >> which: no pbrun in (/usr/lib64/qt-3.3/bin:/usr/local/maven-3.2.1/bin:/usr/local/bin:/bin:/usr/bin) *FROM LOCAL SHELL ON SAME HOST* $ ssh host1.mydom.com Last login: Sun Apr 3 19:00:41 2016 from 16.87.0.70 $ which pbrun /opt/pb/bin/pbrun $ $ echo $PATH /opt/krb5/sbin/64:/usr/lib64/qt-3.3/bin:/usr/local/maven-3.2.1/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/bin:/opt/pb/bin:/opt/perf/bin:/bin:/usr/local/bin:/home/corcharp/bin On Saturday, April 2, 2016 at 1:01:22 PM UTC-6, Johannes Kastl wrote: > > On 01.04.16 19:43 phillip....@gmail.com <javascript:> wrote: > > > HELP - I really need to figure this out, as ansible will be mostly > useless > > to me unless I can reliably use it with pbrun > > > > $ ansible all -i myhosts -o -m shell -a 'uptime' -b --become-method > pbrun > > It seems your pbrun executable is not found. > > What does this return (if you run it for just one host foobar to test it): > > $ ansible foobar -i myhosts -o -m shell -a 'which pbrun' > > Johannes > > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/af4bb8d6-b80f-4f51-8eee-e66a9dc502de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.