This is how that would be sourced with su (just not sure that is useful
either):
- command: source mycommand.sh chdir="{{ command_directory }}"
become: True
^ the issue is that 'sudo su -' is not supported, you either need full sudo
or be able to run 'su' directly.
----------
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/CACVha7e-pBD4bNjJDA67D3A8jdaJVqXNO%3DFhiPrTHOszF_auQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.