Hello, First, are you using the same account with the playbook and when you test interactively ? And are you sure you are using the same "become_user" ?
Second, when your playbook run a task/module, it is using a clean minimal environment ? Are you able to issue the same command in non interactive mode ? (for example from a cron/at/...) If you have to do "pbrun bash" then the command, it's not exactly the same as doing "pbrun thecommand" (what you are asking your playbook to do) You're first loading a specific interpreter (and I'm not sure your playbook is using the same exact shell) in interactive session (hence setting environment variables and doing stuffs via the ~/.bashrc or ~/.profile etc) Just few hints. Regards. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/76a8de7d-30ef-45c6-905a-219391d9e345n%40googlegroups.com.
