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
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:
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
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