# storing stack.stack\_outputs to a variable

**URL:** <https://forum.ansible.com/t/storing-stack-stack-outputs-to-a-variable/23349>\
**Category:** Ansible Project\
**Created:** [December 30, 2016, 12:55pm UTC](https://forum.ansible.com/t/storing-stack-stack-outputs-to-a-variable/23349 "2016-12-30T12:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Garg](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Saurabh\_Garg](https://forum.ansible.com/u/Saurabh_Garg)\
**Post date:** [December 30, 2016, 12:55pm UTC](https://forum.ansible.com/t/storing-stack-stack-outputs-to-a-variable/23349/1 "2016-12-30T12:55:57Z")

</div>

- name: show stack outputs  
debug: msg=“{{stack.stack\_outputs}}”

This helps me get stack output like RDS URL and ElasticBeanstalk URL after Stack Deployment.

How can I save this out to a file out variables. Sample snippet of ansible playbook code will do.

Any help will be really appreciated.

Regards,  
Saurabh
