# Hide (standard) output of tasks

**URL:** <https://forum.ansible.com/t/hide-standard-output-of-tasks/13108>\
**Category:** Ansible Project\
**Created:** [July 12, 2013, 8:52am UTC](https://forum.ansible.com/t/hide-standard-output-of-tasks/13108 "2013-07-12T08:52:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Wolfing](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Max\_Wolfing](https://forum.ansible.com/u/Max_Wolfing)\
**Post date:** [July 12, 2013, 8:52am UTC](https://forum.ansible.com/t/hide-standard-output-of-tasks/13108/1 "2013-07-12T08:52:45Z")

</div>

Hello, I hope someone can answer my following question:  
It is possible to run ansible tasks in background, or hiding their output from playbook?

Here is an example:  
In an playbook I have the following task:

- name: create some directories  
command: mkdir -p /really/important/directory  
tags: common

It may possible, that the directory is missing on the server, but I won’t get an output of the command, even not if one of the directories wre created.  
The whole task should be hidden from the summary, is this possible with ansible?

Many thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [July 12, 2013, 12:31pm UTC](https://forum.ansible.com/t/hide-standard-output-of-tasks/13108/2 "2013-07-12T12:31:36Z")

</div>

The ‘async’ command as detailed in the documentation will background commands and optionally poll for their completion, but there’s no need to poll a mkdir as it’s not a long running operation.

If you want to see the results of running the command in Ansible, supply “-v” when executing the playbook.

I guess I’m not understanding why you would want to hide the output.

I would still implement this with “file: dest=/really/important/directory state=directory mode=700 …”

---

<div class="post-metadata">

**Author:** ![Max\_Wolfing](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Max\_Wolfing](https://forum.ansible.com/u/Max_Wolfing)\
**Post date:** [July 12, 2013, 1:13pm UTC](https://forum.ansible.com/t/hide-standard-output-of-tasks/13108/3 "2013-07-12T13:13:02Z")

</div>

Hi Michael,

thank you for the fast reply. This answered my question. The ‘mkdir’ was only an example for a short running operation which do not tends to go wrong.

Best, Max
