Order of roles execution in playbook

737 views
Skip to first unread message

Jim Richard

unread,
Apr 27, 2016, 10:03:11 AM4/27/16
to Ansible Project
I have the following that as of 1.9.4, executed the roles in the order in which they are listed:

- hosts: all
  max_fail_percentage: 0
  gather_facts: no
  roles:
    - repositories
    - yum-packages
    - pip-packages
    - java


With Ansible 2.X, this playbook begins by executing the java role.

Can I no longer assume a playbook like this will be executed in the listed order?

I'm stumped, am I missing something fundamental here re: Ansible 2.X ?

Thanks !

Jim Richard

unread,
Apr 29, 2016, 8:18:53 PM4/29/16
to Ansible Project
nobody?

Stephen Granger

unread,
Apr 29, 2016, 10:19:30 PM4/29/16
to ansible...@googlegroups.com
The only thing I could suggest is that maybe you have/were or your Ansible environment is using a different strategy plugin.
http://docs.ansible.com/ansible/playbooks_strategies.html

or that you are using tags?

Do all the roles get executed? Is there any indents or tabs that have been added to the playbook so only some roles work?

--
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/e44148d4-3ab6-41fc-91a7-cb320958cc08%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve
Reply all
Reply to author
Forward
0 new messages