Re: [ansible-project] Store playbook name as a 'global' variable across plays?

2016-11-28 Thread burns498
Hello - Apologies for the late reply. I failed to see the update before. Thanks for the suggestion. I ended up defining this as a fact early on in my playbook. As for your question on roles, I do agree with you. I already redesigned the role setup to make more sense. Thanks! On Wednesday,

Re: [ansible-project] Store playbook name as a 'global' variable across plays?

2016-11-09 Thread Dick Davies
you could set it as a group_var in your inventory. Do you mind me asking what's going on with your roles there (I don't understand what the target var is for)? If you have 2 different roles that you want to apply to groups, couldn't you just have multiple plays? ... ... - hosts: Lower_Envs

[ansible-project] Store playbook name as a 'global' variable across plays?

2016-11-08 Thread burns498
Hello - Is there a way to store playbook name as a 'global' variable across plays?? I've seen potential options via callbacks or group_vars:all but still struggling with