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