Re: [ansible-project] Re: Playbook directory organisation

2015-06-30 Thread James Morgan
Interesting, thanks for the info will have a play with it. On 30 June 2015 at 01:15, Tom Paine wrote: > Have updated that thread with an inventory script that can pick up any > YAML vars files you'd like. > > On Sun, Jun 28, 2015 at 11:53 AM, James Morgan > wrote: > > Interesting read though th

Re: [ansible-project] Re: Playbook directory organisation

2015-06-29 Thread Tom Paine
Have updated that thread with an inventory script that can pick up any YAML vars files you'd like. On Sun, Jun 28, 2015 at 11:53 AM, James Morgan wrote: > Interesting read though that seems to concern itself with the group_var / > inventory layouts. I don't really have a problem there. Just the

Re: [ansible-project] Re: Playbook directory organisation

2015-06-28 Thread James Morgan
Interesting read though that seems to concern itself with the group_var / inventory layouts. I don't really have a problem there. Just the playbook sub directories not picking up the variables. If I ignore the idea of tidying playbooks by sub directory everything works well. Symlinks seem a bit

Re: [ansible-project] Re: Playbook directory organisation

2015-06-26 Thread ddffgpmfn
Discussed here: https://groups.google.com/forum/#!topic/ansible-project/T9RWNQbLRWs -- 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-project+unsubscr.

Re: [ansible-project] Re: Playbook directory organisation

2015-06-26 Thread James Morgan
Ok, I think i'd prefer more playbooks in the playbook_dir rather than resorting to symlinks. Less likely to confuse or go wrong. Cheers for the info J -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and st

Re: [ansible-project] Re: Playbook directory organisation

2015-06-26 Thread Hagai Kariti
There was another thread about that yesterday. No good option that i know of. You can try to create a link to your var files inside each invetory, or write another inventory script that includes these files. On Fri, Jun 26, 2015, 18:28 James Morgan wrote: > Ok that makes sense but causes a probl

Re: [ansible-project] Re: Playbook directory organisation

2015-06-26 Thread James Morgan
Ok that makes sense but causes a problem for my layout. I have . ├── group_vars │ ├── all.yml │ ├── groupA.yml │ ├── groupB.yml │ └── groupC.yml ├── inventory │ └── ec2 │ ├── eu-west │ │ ├── inventoryA │ │ └── inventoryB │ └── us-east │ ├── inventory

Re: [ansible-project] Re: Playbook directory organisation

2015-06-26 Thread Hagai Kariti
Group vars can sit next to your inventory or next to your playbook. Looks like your current groupvars are evaluated because they sit next to yout root-dir playbooks. You can try to put them next to your inventory so that they'll be evaluated for every pkaybook that's run with that inventory. On F

[ansible-project] Re: Playbook directory organisation

2015-06-26 Thread James Morgan
Hi, Thanks for the info. I hadn't looked at those configs, though we can only change the configuration on certain environments. My layout is pretty straightforward . ├── group_vars │ └── all.yml └── roles │ ├── roleA │ ├── roleB │ └── shared_roles │ ├── roleC │ └── roleD ├─

[ansible-project] Re: Playbook directory organisation

2015-06-26 Thread cruz . pitre
Hi James, Have you set the ansible configuration file's (ansible.cfg) roles_path default setting? See: https://docs.ansible.com/intro_configuration.html#roles-path If you are following the best practices documented (https://docs.ansible.com/intro_configuration.html#roles-path), it should be pu