Include task from different playbook

Hi,

I’m trying to include a play from different play book. The structure is as follows:

Looks like you are attempting to include a playbook.

You probably want to use pre_tasks instead of tasks for the first part to ensure things run in the order you want too. This would like something like the following:

it still gives the same error . “no action detected in task” is there any alternative way to do it?

The included files need not contain the hosts and the tasks modules. It works for the below file :