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
A
...
B
...
C
...
D
...
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
A
...
B
...
C
...
D
...
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.