storing stack.stack_outputs to a variable

  • 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