Skip to content

Instantly share code, notes, and snippets.

@hiroraba
Created December 16, 2013 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroraba/7988975 to your computer and use it in GitHub Desktop.
Save hiroraba/7988975 to your computer and use it in GitHub Desktop.
package mysite;
use Rex -base;
desc "install apache to server1";
task "server1", group => 'servers1', sub {
install "apache2";
service apache2 => ensure => "started";
};
desc "install php5 to server2";
task "server2", group => 'servers2', sub {
install "php5";
};
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment