ansible-galaxy init and metadata values

55 views
Skip to first unread message

Dylan Martin

unread,
Oct 16, 2015, 1:32:18 PM10/16/15
to Ansible Project
Hi everyone.  I expected this functionality to exist, but I can't find it so either it does exist and someone can gently point me toward the document I missed or it doesn't exist and we might want to talk about weather it should exist.

I expected I could write a file like ~/.ansible/galaxy-defaults.yaml that would look like this:

---
author: me
company: me.com
license: my license
... etc ...

and then when I run ansible-galaxy init somenewrole, my somenewrole/meta/main.yaml and my somenewrole/README.md files would have that info already templated in.

Does that make sense?  I'm a perl guy (ducks head, waits for laughter to subside) and I'm used to using Module::Starter where you can put values in ~/.module-starter/config and those values get templated into new modules.

If I'm still not making sense, here's Module::Starter

Thanks!  Sorry if I missed something in the docs that should have shown me how to do this!

-Dylan

Brian Coca

unread,
Oct 16, 2015, 1:52:36 PM10/16/15
to Ansible Project
We don't have this functionality yet, but I think its a good idea. The
metadata is now an external template so it is easy to add.

Also, you are not alone, there are other Perl guys here.


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