Running a dynamically generated playbook.

Hi, I have a requirement to run a dynamically generated playbook from a main playbook. The idea is to run only a main playbook which would be generating a sub-playbook and it would be run from one of the tasks in the main playbook. How do I achieve this ?

It's not possible for 2 reasons. 1) A playbook can't be "run from one of the
tasks". 'import_playbook' is not a task. 2) The file that should be imported
by 'import_playbook' must be ready then the playbook started. Therefor it
can't be "dynamically generated playbook from a main playbook".

HTH,

  -vlado