# use variable with a default in a role

**URL:** <https://forum.ansible.com/t/use-variable-with-a-default-in-a-role/18269>\
**Category:** Ansible Project\
**Created:** [May 20, 2015, 8:29am UTC](https://forum.ansible.com/t/use-variable-with-a-default-in-a-role/18269 "2015-05-20T08:29:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabix](https://avatars.discourse-cdn.com/v4/letter/f/85f322/32.png) [@fabix](https://forum.ansible.com/u/fabix)\
**Post date:** [May 20, 2015, 8:29am UTC](https://forum.ansible.com/t/use-variable-with-a-default-in-a-role/18269/1 "2015-05-20T08:29:14Z")

</div>

I have this role (roles/dummy/tasks/main.yml) :

---

<div class="post-metadata">

**Author:** ![fabix](https://avatars.discourse-cdn.com/v4/letter/f/85f322/32.png) [@fabix](https://forum.ansible.com/u/fabix)\
**Post date:** [May 22, 2015, 8:02am UTC](https://forum.ansible.com/t/use-variable-with-a-default-in-a-role/18269/2 "2015-05-22T08:02:54Z")

</div>

Is it a bug or not ?
