ansible_ssh_port behaving differently on v2

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

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