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
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
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
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.
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
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
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
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
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
├─
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
10 matches
Mail list logo