Forgive my newbie question, but I would like to execute three tasks and use two roles in a playbook, in the order:
- task
- role
- task
- role
- task
This is what I have so far (task, role, task):
---
- name: Task Role Task
hosts: 127.0.0.1
connection: local
gather_facts: false
pre_tasks:
- name: Do this task first
foo:
roles:
- role: this role second
foo:
post_tasks:
- name: Do this task third
foo:
Is this possible or should I be changing my tasks into roles?
question from:https://stackoverflow.com/questions/30763709/ansible-playbook-execute-in-this-order-task-role-task-role-task