You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dtaylor edited this page Jan 17, 2013
·
3 revisions
If you have multiple servers you just want to group them. So you don't have to add each server to your task.
user "myuser";
public_key "/path/to/my/public.key";
private_key "/path/to/my/private.key";
group "frontend" => "server1", "server2", "server3";
task "uname", group => "frontend", sub {
run "uname";
};
To use multiple groups you can use the following syntax:
task "install_ntpdate", group => ["frontend", "smtp"], sub {
run "uname";
};