Ok 
sorry 
http://docs.ansible.com/ansible/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable
 
:) v2 ansible_port

On Wednesday, January 6, 2016 at 4:51:50 PM UTC+1, DomaNitro wrote:
>
> Hey,
>
> I noticed something on v2 not sure if its a bug.
>
> debug: msg="{{ ansible_ssh_port | default('22') }}"
>>
>
> in v1 if you use  above code and your ansible_ssh_port is not defined it 
> will fall back to default filter but in v2 it will return any empty string 
> and will not use default 
>

-- 
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/fc64dddf-f706-4aac-9fb4-f6747d97b4c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to