Thanks for your reply. You iterate over "hosts" in the example like this:
on hosts do |host| ... end Now, in my case, I will need the same for roles. How do I do that? /jesper On Tuesday, March 26, 2013 10:14:29 AM UTC+1, Lee Hambley wrote: > > Answerd at stack overflow: http://stackoverflow.com/a/15633170/119669 > > Lee Hambley > -- > http://lee.hambley.name/ > > On 26 March 2013 09:18, Jesper Rønn-Jensen <jesp...@gmail.com<javascript:> > > wrote: > >> Hi >> >> I need to add role/environment specific variables for a (legacy) >> capistrano multi server, multi-role, multi-environment setup. >> >> >> See example and details at http://stackoverflow.com/** >> questions/15619945/capistrano-**how-to-access-a-** >> serverdefinition-option-in-**the-code<http://stackoverflow.com/questions/15619945/capistrano-how-to-access-a-serverdefinition-option-in-the-code> >> >> How can I define a variable in my server configuration, which is >> accessible from my tasks? >> >> Also I would appreciate any similar examples. Perhaps there is a simpler >> way than the one I am pursuing here? >> >> Any feedback greatly appreciated :) >> >> /Jesper Rønn-Jensen >> >> -- >> -- >> * You received this message because you are subscribed to the Google >> Groups "Capistrano" group. >> * To post to this group, send email to capis...@googlegroups.com<javascript:> >> * To unsubscribe from this group, send email to >> capistrano+...@googlegroups.com <javascript:> For more options, visit >> this group at http://groups.google.com/group/capistrano?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Capistrano" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to capistrano+...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.