nested playbooks

Hi

My nested playbooks fail with this error:

$ ansible-playbook site.yml --limit dev

ERROR! no action detected in task. This often indicates a misspelled
module name, or incorrect module path.

The error appears to have been in '/projects/ansible/base.yml': line 2,
column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

You have included base, dev and mgmt as task files, not as playbooks.

Just remove the spaces in front and they will be includes as playbooks.

- name: site | deploy and configure all the things
   hosts: all
   become: yes
   gather_facts: yes
   vars_files:
     - vars/users.yml
     - vars/iocage.yml
   tasks:

- include: base.yml
- include: dev.yml
- include: mgmt.yml

Since you don't have any tasks in the site.yml playbook you can remove tasks: