Hi,

I am wanting to use the environment task parameter with dictionaries taken 
from two roles, e.g.

in roles/ruby/vars/main.yml:

ruby_environment:
    GEM_HOME: "/home/deploy/.gem/ruby/2.1.2"
    PATH:     
"/home/deploy/.gem/ruby/2.1.2/bin:/opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/bin:/opt/rubies/ruby-2.1.2/bin"

in roles/rails/tasks/main.yml, I am wanting to do something like this:

- name: execute bundler
  command: bundle install --deployment
  environment:
    "{{ ruby_environment }}" merged with "RAILS_ENV: production"

Is this possible?

Thanks,

Steve

-- 
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].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c26c33b5-45d4-4132-85f0-cff159444783%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to