Could you resolve the issue? In case yes, i'd be happy to re-use whatever you came up with.
On Tuesday, 21 January 2014 17:35:25 UTC+1, Marc wrote: > > Hi there, > > I’m reusing some roles between many hosts and I have a problem where some > hosts require me to use a proxy for internet access. I want to know if > there is an easy way to use the same role but only defining the environment > http_proxy variable for only those hosts that need it? > > - name: "Install sysv-rc-conf on Ubuntu" > apt: name=sysv-rc-conf state=present > when: ansible_distribution == 'Ubuntu' > environment: > http_proxy: http://172.16.0.1:8080 > > Thanks, > Marc > > > -- 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/ed342fee-2937-4568-9418-377b3db2961c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
