ansible_ssh_port behaving differently on v2

41 views
Skip to first unread message

DomaNitro

unread,
Jan 6, 2016, 10:51:50 AM1/6/16
to Ansible Project
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 

DomaNitro

unread,
Jan 7, 2016, 5:14:02 AM1/7/16
to Ansible Project
Reply all
Reply to author
Forward
0 new messages