# Saving output of commands passed through 'with\_items' into a single file

**URL:** <https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28108>\
**Category:** Ansible Project\
**Created:** [July 20, 2018, 6:48pm UTC](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28108 "2018-07-20T18:48:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soham\_Chakraborty](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Soham\_Chakraborty](https://forum.ansible.com/u/Soham_Chakraborty)\
**Post date:** [July 20, 2018, 6:48pm UTC](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28108/1 "2018-07-20T18:48:53Z")

</div>

\*\* I sent this email to another group and then checked that it is ansible-devel and not ansible project. So here goes again \*\*

Hi all,

I am trying to run few commands and save output of those commands into a single file for checking later.

So far, I have come up with the following playbook:
