Answering my own question, in case some else have similar issue.

scylla_login is defined in inventories/ec2/group_vars/all.yaml
Although I used 
ansible-playbook -i inventories/ec2/ playbook.yaml

The static file was not evaluated, similar to
https://github.com/ansible/ansible/issues/8605

I bypass the issue with
ansible-playbook -i inventories/ec2/ -e 
"@inventories/ec2/group_vars/all.yaml" playbook.yaml

It would have been nice if the original have failed, rather than sending 
the string, including "{{ }}" as a log in.


On Sunday, April 10, 2016 at 9:52:11 PM UTC+3, Tzach Livyatan wrote:
>
> I tripped on the following, non consistent problem:
>
> I have a playbook which start like:
> - name: Clean Data Scylla
>   hosts: "Scylla"
>   user: "{{scylla_login}}"
>   tasks:
> ...
>
>
> scylla_login is defined in a different file, and for most playbook users 
> this works fine, for other, ssh failed. 
> When looking into /var/log/secure of the target server, I found:
> Invalid user {{scylla_login}}
>
> Look like the var was not evaluated!
> Could this be related to ansible/python/os versio?
>
>

-- 
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/46932088-a46f-4d10-8de1-a240b4aacdcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to