ansible/ansible — pull request #325 by jkleint (2012-05-07 15:53:06+00:00)
Title: Fix non-sudo execution, add --sudo-user to ansible-playbook

The recent addition of --sudo-user was always trying to use sudo in every case. This fixes it and also adds --sudo-user to ansible-playbook (actually to utils.base_parser). It also turns on sudo mode if you --ask-sudo-pass.