# Globally pass variable

**URL:** <https://forum.ansible.com/t/globally-pass-variable/16488>\
**Category:** Ansible Project\
**Created:** [October 12, 2014, 11:32pm UTC](https://forum.ansible.com/t/globally-pass-variable/16488 "2014-10-12T23:32:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhukov\_Pavel](https://avatars.discourse-cdn.com/v4/letter/z/848f3c/32.png) [@Zhukov\_Pavel](https://forum.ansible.com/u/Zhukov_Pavel)\
**Post date:** [October 12, 2014, 11:32pm UTC](https://forum.ansible.com/t/globally-pass-variable/16488/1 "2014-10-12T23:32:03Z")

</div>

Is it possible to specify variable for a module to use it in every call of that module?

E.g i have multiple calling to docker and docker\_image modules inside playbook, but since i have a mac with docker inside VM, i should pass docker\_url variable on EACH call of docker module.  
Is it possible to define variable that will be used by every module automatically or redefine defaults for module?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 13, 2014, 8:56pm UTC](https://forum.ansible.com/t/globally-pass-variable/16488/2 "2014-10-13T20:56:21Z")

</div>

It is not possible to do this.
