Ansible 1.2.2: Playbook connection does not work for sudo_user defined in group_vars

Hi,

Need help to figure out if the following is a bug with Ansible 1.2.2:

Scenario

Can you summarize what the expected result and actual result are?

I’m failing to understand the problem of something succeeding, which is how I read your point #2 :slight_smile:

Hi Michael,

Was trying to parameterize the sudo_users into my playbooks (so I can use it both for Vagrant and AWS); but as you can see in scenario #1; it fails. When I try to hard code the sudo user (in scenario #2); it works.

So the question is: what is the correct way to parameterize using the values I set in groups_vars/all so that it is correctly being used by the playbook.

BTW: Kudos on the Ansible design; compared to Puppet, it is so much easier to learn and build up :slight_smile:

Cheers,
Michael Leow

Can you please test this on Ansible 1.3 (devel)?

Thanks!