Could there be a way let me include all ansible playbook?

34 views
Skip to first unread message

Dylan Wang

unread,
Jul 15, 2015, 8:30:40 AM7/15/15
to ansible...@googlegroups.com
Hi guys,
I use travis-CI for syntax checking.
Could there be a way let me include all ansible playbook in a same directory? (eg. - include *.yml )
That will help me a lot for maintain syntax test, otherwise when I modify/add a playbook, I need change it in test.yml too.

and also syntax checking seems don't work for third-party module, if I play it directly it works fine, but when I add `--syntax-check`, 
it just show me " not a legal parameter of an Ansible Play".
Is that a bug?

Brian Coca

unread,
Jul 15, 2015, 11:24:07 AM7/15/15
to ansible...@googlegroups.com
it won't work with include, but you can do this in shell:

ansible-playbook *.yml --syntax-check

and yes, it should work with 3rd party modules


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