On Thursday, December 12, 2013 7:13:28 AM UTC-7, James Martin wrote: > > Dmitry, > > Can you explain what you mean in more detail "if prior to call to > B/install tasks I call B tasks - "foo" gets populated with > /roles/B/vars/main.yml, otherwise it picks up /group_vars/all". > > Examples of playbooks on github would be helpful. >
there you go: https://github.com/droopy4096/ansible-nested-roles in https://github.com/droopy4096/ansible-nested-roles/blob/master/install.yml line "9" is the "trigger" line. launch ansible-playbook -v -u root -i inventory install.yml and you'll see that echo prints "Hello Darleks", now comment above line 9 in install.yml and run the same... it'll say "Hello people" variable world is defined in several places group_vars/all ("people") and roles/B/vars/main.yml ("Darleks") you see what I mean? -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
