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:
---
- hosts: base
^ here
I couldn't find a working example or docs of nested playbooks. I only
see it mentioned here[1]:
"Playbooks can include other playbooks too, but that’s mentioned in
a later section."
This is what I currently have:
# site.yml
---
- 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
base,dev,mgmt are all largely the same, matching inventory groups of the
same name:
# base.yml
---
- hosts: base
become: yes
gather_facts: yes
roles:
- pkg
- batbelt
- inventory
- ntpd
etc.
what am I missing?
—
Dave Cottlehuber
Skunkwerks, GmbH
[1]: http://docs.ansible.com/ansible/playbooks_roles.html
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1467729258.122225.657344745.7196D993%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.