Include wildcard

102 views
Skip to first unread message

Patrick McMahon

unread,
Jan 19, 2016, 11:00:54 AM1/19/16
to Ansible Project
Hi Guys,

Quick question. How can I do this in my playbook?

# Include all of new-apps
- include: ../*/new-app.yml

I get the following error:

ERROR: file could not read: /ansible/playbooks/*/new-app.yml

I want ansible to include all files called new-app.yml under any directory.

Thanks
Paddy

Brian Coca

unread,
Jan 19, 2016, 11:02:11 AM1/19/16
to Ansible Project
no

but you can try using fileglob lookup
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fee7aee8-2fcd-4d64-b651-bc953ce2e502%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages