Deploying to multiple hosts using Webistrano
As per this Capistrano Wiki page, you can restrict tasks and single commands to specific :roles and :only attributes:

task :migrate, :roles =&gt; :db, :only =&gt; { :master =&gt; true } do
  # ...
end

task :other do
  run "migrate", :roles =&gt; :db, :only =&gt; { :master =&gt; true }
end


Using this, I was able to run the refresh_configuration task to run on a server with a specific attribute.