# set\_fact not working like it used to

**URL:** <https://forum.ansible.com/t/set-fact-not-working-like-it-used-to/19211>\
**Category:** Ansible Developer\
**Created:** [September 9, 2015, 2:15am UTC](https://forum.ansible.com/t/set-fact-not-working-like-it-used-to/19211 "2015-09-09T02:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dann\_Bohn](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@Dann\_Bohn](https://forum.ansible.com/u/Dann_Bohn)\
**Post date:** [September 9, 2015, 2:15am UTC](https://forum.ansible.com/t/set-fact-not-working-like-it-used-to/19211/1 "2015-09-09T02:15:02Z")

</div>

Hi Folks,

I have some playbooks that include other playbooks, those playbooks use set\_fact to set vars that I later use in the main playbook. This is not working with the latest checkout of 2.0. It seems that vars set with set\_fact are only good within the scope of the playbook that ran it. Since I feel I’m not explaining this well enough, here is an example that works with ansible 1.9.2

[http://pastebin.com/Vq1wEAT1](http://pastebin.com/Vq1wEAT1)

the ansible\_ssh\_user and ansible\_ssh\_pass vars are not available to the setup module in 2.0, however the password var that is registered is…

Any tips or reasoning behind the change would help me greatly.

Thanks,

Dann

---

<div class="post-metadata">

**Author:** ![Jonathan\_Davila](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@Jonathan\_Davila](https://forum.ansible.com/u/Jonathan_Davila)\
**Post date:** [September 21, 2015, 12:19pm UTC](https://forum.ansible.com/t/set-fact-not-working-like-it-used-to/19211/2 "2015-09-21T12:19:15Z")

</div>

Seems like the paste expired. Could you paste again? Or if you use the Google Groups interface there is an option for code blocks too.
