# Passing set fact value to ami copy

**URL:** <https://forum.ansible.com/t/passing-set-fact-value-to-ami-copy/36725>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [June 13, 2022, 10:48am UTC](https://forum.ansible.com/t/passing-set-fact-value-to-ami-copy/36725 "2022-06-13T10:48:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 13, 2022, 10:48am UTC](https://forum.ansible.com/t/passing-set-fact-value-to-ami-copy/36725/1 "2022-06-13T10:48:18Z")

</div>

You haven’t said what the problem is, or shown any results, neither correct nor errors. You have described what your three tasks are supposed to do, but with no indication as to which of those tasks are failing or why. We have no way of guessing for example whether you are experiencing a problem with AWS or your Ansible tasks.  
We’d be happy to help you, but please don’t make us guess about the parts you aren’t showing us.

---

<div class="post-metadata">

**Author:** ![Walter\_Rowe](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/walter_rowe/32/4506_2.png) [@Walter\_Rowe](https://forum.ansible.com/u/Walter_Rowe)\
**Post date:** [June 13, 2022, 11:20am UTC](https://forum.ansible.com/t/passing-set-fact-value-to-ami-copy/36725/2 "2022-06-13T11:20:50Z")

</div>

Are all these plays in the same playbook or separate playbooks? If you are using ansible tower and separate playbooks, then you need to set\_stats vs set\_fact. The set\_fact module only provides values for the remainder of the current playbook. The set\_stats module creates artifacts that are returned to ansible tower which then provides them as additional extra\_vars to downstream playbooks in an ansible tower workflow stream.
