# how can we import terminal output of specific task/variable/message/debug in a excel sheet ?

**URL:** <https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727>\
**Category:** Ansible Project\
**Created:** [June 14, 2017, 5:21pm UTC](https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727 "2017-06-14T17:21:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurminder\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@Gurminder\_Singh](https://forum.ansible.com/u/Gurminder_Singh)\
**Post date:** [June 14, 2017, 5:21pm UTC](https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727/1 "2017-06-14T17:21:57Z")

</div>

how can we import terminal output of specific task/variable/message/debug in a excel sheet ?

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [June 15, 2017, 4:47am UTC](https://forum.ansible.com/t/how-can-we-import-terminal-output-of-specific-task-variable-message-debug-in-a-excel-sheet/24727/2 "2017-06-15T04:47:36Z")

</div>

You could register the results of whatever command output you are interested in, then use a local action (or delegate to localhost) task to append to a .csv file on your ansible controller. Then you could use win\_copy to copy the .csv file over to a windows desktop machine so that it can be viewed using Excel.

There might be a better way of making data in a tabular form visible though.  
I run some ansible playbooks which set facts and then I use the template module to generate an html page.  
Using jinja2 loops I am able to generate a tabular report which I then transfer to a webserver so that users can click on a link to see the latest version of the report.

Hope this helps,

Jon
