Re: [ansible-project] environment variables for a role

2015-06-29 Thread Brian Coca
sorry, you are correct, environment will added to roles in 2.0 (should work in current devel) -- Brian Coca -- 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

Re: [ansible-project] environment variables for a role

2015-06-26 Thread Majid al-Dosari
i tried that already. `environment` does not work in role definition. I'm on 1.9.2. - hosts: - localhost gather_facts: false environment: # ENVVAR: WORKS roles:

Re: [ansible-project] environment variables for a role

2015-06-26 Thread Brian Coca
I'm not sure what you are asking, so I'll respond to the 2 interpretations I have. 1) add environment variables to all tasks in a role: use environment: directive in the role definition, it takes a dictionary from which it converts keys into environment variables and assigns the their dictionary v

[ansible-project] environment variables for a role

2015-06-26 Thread Majid al-Dosari
http://docs.ansible.com/faq.html#how-can-i-set-the-path-or-any-other-environment-variable-for-a-task-or-entire-playbook i get this. ^^ ..but how do i set environment variables for a role? i want it associated with a role and not a playbook. comment: it seems environment variables are not fir