This is how that would be sourced with su (just not sure that is useful

- command: source 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 post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to