Reversed sorted inventory

137 views
Skip to first unread message

Yorick Gersie

unread,
Aug 15, 2014, 7:26:55 AM8/15/14
to ansible...@googlegroups.com, Yorick Gersie
I have an issue when I want to reboot hosts in a sequence. I am using serial: 1 to make sure the playbook runs on 1 host at a time which works perfectly, but Ansible runs the inventory in reversed order.
This was tested with Ansible version 1.6.6 and 1.7.1. 

See: http://pastebin.com/Hc18K7wX for my test run.

Is this expected behaviour? For now I'll reverse the inventory list to workaround the issue.

Michael DeHaan

unread,
Aug 16, 2014, 10:38:54 AM8/16/14
to ansible...@googlegroups.com, Yorick Gersie
No, it's definitely *not* expected, gathering facts happens in the right order, but the hosts go backwards.

This is a bug for sure, and I'm filing it as a high priority item.

Thanks very much for the report.





--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/29ec09e1-65bf-41fa-9f73-e361aac2ddcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
Aug 16, 2014, 10:45:55 AM8/16/14
to ansible...@googlegroups.com, Yorick Gersie
You can follow this ticket at - https://github.com/ansible/ansible/issues/8646 - thanks once again!

Yorick Gersie

unread,
Aug 16, 2014, 10:49:03 AM8/16/14
to ansible...@googlegroups.com, yor...@xs4n1.nl
Thanks Michael, I'll keep an eye on the report.


Op zaterdag 16 augustus 2014 16:45:55 UTC+2 schreef Michael DeHaan:

Imran Khan

unread,
Aug 20, 2014, 6:33:58 AM8/20/14
to ansible...@googlegroups.com, yor...@xs4n1.nl
Has this issue been resolved, I used an apt-get installation method in Ubuntu 12.04 ,Precise. Currently I have ansible 1.7 installed.

Michael DeHaan

unread,
Aug 20, 2014, 7:44:07 AM8/20/14
to ansible...@googlegroups.com, Yorick Gersie
Yes, this issue has been resolved on the development branch for 1.8.

Should a 1.7.2 occur in the future (not currently in plan, but this will likely change), it will be included there as well.





--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.

Imran Khan

unread,
Aug 20, 2014, 7:49:32 AM8/20/14
to ansible...@googlegroups.com, yor...@xs4n1.nl
A bit too late for me, working on a workaround :)
Reply all
Reply to author
Forward
0 new messages