10 ms·
I've just picked up ansible, and one thing I found lacking was an example ansible repository with a standard directory layout and config documented on the site
by georgebashi 13y ago
I've just picked up ansible, and one thing I found lacking was an example ansible repository with a standard directory layout and config documented on the site or on github. For example, it's not obvious from the docs that a nice way to set things up is:
site.yml
ansible.cfg
hosts
host_vars/*
group_vars/*
roles/*/{files,templates,tasks,handlers,vars}
- mpdehaan2 13y agoHave you seen http://www.ansibleworks.com/docs/bestpractices.html http://www.ansibleworks.com/docs/bestpractices.html ? Just noticed these don't mention "vars" in the roles directory, do need to fix that :)
- georgebashi 13y agoI hadn't, doh! Thanks. Might be worth adding a link to that at start of the docs, because I found I was hesitant to start writing yamls without knowing the "right" structure for them.