# How to make ansbile output ordered?

**URL:** <https://forum.ansible.com/t/how-to-make-ansbile-output-ordered/25349>\
**Category:** Ansible Project\
**Created:** [August 29, 2017, 5:41am UTC](https://forum.ansible.com/t/how-to-make-ansbile-output-ordered/25349 "2017-08-29T05:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guo\_tie](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@guo\_tie](https://forum.ansible.com/u/guo_tie)\
**Post date:** [August 29, 2017, 5:41am UTC](https://forum.ansible.com/t/how-to-make-ansbile-output-ordered/25349/1 "2017-08-29T05:41:07Z")

</div>

I want ansbile output order as expect:

For example, i hvae a group G with host A,B,C,D, If i use

`ansible G -m shell -a uname`

I want every time, the output host order is

```auto
A
  ...
B
  ...
C
  ...
D
  ...

```

---

<div class="post-metadata">

**Author:** ![Uwe\_Sauter](https://avatars.discourse-cdn.com/v4/letter/u/41988e/32.png) [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Post date:** [August 29, 2017, 7:08am UTC](https://forum.ansible.com/t/how-to-make-ansbile-output-ordered/25349/2 "2017-08-29T07:08:22Z")

</div>

Due to the nature of asynchronous execution I don't think there is a way to do what you want to achieve. If you can afford the  
time you could serialize your playbooks by putting "serial: 1" on the same level as "hosts". But even then I'm not sure in which  
host order Ansible executes the playbook.
