ansible/ansible — pull request #5714 by eggsby (2014-01-21 20:39:34+00:00)
Title: Allow templates in ansible_sudo_pass inventory var

Template ansible_sudo_pass the same way we template ansible_ssh_pass.

I don't like hard-coding passwords, but sometimes due to restrictions (like inability to use ssh-keys) dealing with raw passwords is necessary. I vastly prefer fetching these things from environment variables (transient) than hard-coding into an inventory.

Currently for ansible_ssh_pass I use a templated inventory var:

ansible_ssh_pass="{{ lookup('env', 'ANSIBLE_SSH_PASS') }}"

This works great, because of the template logic in `runner/__init__.py`.

This simple pull request just does the same for `ansible_sudo_pass`

Thanks