I want to include multiple tasks from different roles in a specific order. 
As of now my playbook looks like 

---
- name: test play
  hosts: all

  tasks:
    - include: ../roles/common/tasks/{{ item }}
      with_items:
        - main.yml
        - a.yml
        - b.yml
    - include: ../roles/role1/tasks/stop.yaml
    - include: ../roles/common/tasks/{{ item }}
      with_items:
        - c.yml
        - d.yml
        - e.yml
    - include: ../roles/role1/tasks/start.yaml


So is it a correct way to approach such kind of requirement OR there is 
cleaner way to achieve this? 

- Sunny B

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a7245094-6c66-4c03-8754-130e37827996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to