I searched a lot for exact the same thing that I wanted to do, but found nothing. So, I'm here to ask:
I have a playbook.yml, where defined some tasks. The first task of that playbook is checking existence of file and, if file exists I want to execute only the tasks, that are defined in the tasks.yml file and stop executing of tasks from playbook.yml (or vice versa). I have read Ansible documentation of course, first of all. But I still don't get if I'm able to do exactly what I want with import/include_tasks modules (tried both of them).