# V2 default values not picked up?

**URL:** <https://forum.ansible.com/t/v2-default-values-not-picked-up/20193>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [January 13, 2016, 10:11am UTC](https://forum.ansible.com/t/v2-default-values-not-picked-up/20193 "2016-01-13T10:11:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oravirt](https://avatars.discourse-cdn.com/v4/letter/o/3e96dc/32.png) [@oravirt](https://forum.ansible.com/u/oravirt)\
**Post date:** [January 13, 2016, 10:11am UTC](https://forum.ansible.com/t/v2-default-values-not-picked-up/20193/1 "2016-01-13T10:11:20Z")

</div>

Hi,

I upgraded to 2.0.0.1 (from 1.9.4) this morning and ran one of my playbooks to see if things worked and it lit up like a christmas tree. Most of that was just warnings (and the fact that ansible\_ssh\_port is not called that any more…), but this thing seems a little more serious (unless I’m missing something)

This is on Fedora 23

This works in 1.9.4:

`

- hosts: localhost  
connection: local  
gather\_facts: false

tasks:

- name: debug  
debug: msg={{ansible\_port|default(22)}}  
`

`  
PLAY [localhost] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {  
“msg”: “22”  
}

`

But doesnt work in 2.0.0.1. Its like the default filter is ignored.

`TASK [debug] ******************************************************************* ok: [localhost] => { "msg": "" }`

Any ideas?

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [January 13, 2016, 3:15pm UTC](https://forum.ansible.com/t/v2-default-values-not-picked-up/20193/2 "2016-01-13T15:15:35Z")

</div>

That’s odd, ansible\_ssh\_port is still used, it’s just an alias to ansible\_port now.

The issue above may be the result of us not adding in all internal variables to the variable dictionary, so go ahead and open an issue for this on github (or search to see if someone else has run into this).
