source is not a command its a builtin in bash, ansible uses /bin/sh if
it is not a symlink to bash or bash is set to do strict sh you won't
have 'source', but you always have . which does the same thing.
that said
shell: source /etc/profile
is a noop, it does nothing as ansible will open a new shell and that
info won't be available in other tasks.
you can do this to set an environment var for all tasks in a play:
- hosts: all
environment:
RHOME: /path/to/r
tasks:
- ....
--
Brian Coca
--
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/CAJ5XC8kQ65nKQZFFN_fVX4_VT62aWXRRqsxLvJp3eUFMmBBw2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.