# How do i get set\_fact variable in another play ?

**URL:** <https://forum.ansible.com/t/how-do-i-get-set-fact-variable-in-another-play/31690>\
**Category:** Ansible Project\
**Created:** [November 20, 2019, 11:21am UTC](https://forum.ansible.com/t/how-do-i-get-set-fact-variable-in-another-play/31690 "2019-11-20T11:21:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Easy\_King](https://avatars.discourse-cdn.com/v4/letter/e/c2a13f/32.png) [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Post date:** [November 20, 2019, 11:21am UTC](https://forum.ansible.com/t/how-do-i-get-set-fact-variable-in-another-play/31690/1 "2019-11-20T11:21:00Z")

</div>

I have a playbook where i first [Play 1] add dynamic host to group “desthosts”

In Play 2 I append a string variable “storerecords” with filenames. Sample playbook below:

In Play 3 I try to remove duplicate entries in “storerecords” variable where i get the error.

`
