I've added an option -x / --exclude-hosts which allows you to specify a list of hosts on the command line to exclude from the calculated hosts list (after roles, etc).
It also works in the expected way:
fab some_func:hosts=a;b,exclude_hosts=a That only runs some_func on host b.
This is handy if you have a huge role and want to just exclude one or two hosts from it.
My fork is here: http://github.com/kcbanner/fabric
Originally submitted by Casey Banner (kcbanner) on 2010-05-27 at 03:42pm EDT
Closed as Done on 2011-04-22 at 08:18pm EDT
Rick Harding (mitechie) posted:
I've rebased his github fork off of the latest master and placed it in a branch to pull from at
on 2011-03-14 at 12:08pm EDT
Morgan Goose (goosemo) posted:
Needed docs, and a bit more work, as I was getting a failing test. Fixed all that, and merged it into my 1.1 branch. The sperate changes can be found here
on 2011-04-05 at 07:29pm EDT
Jeff Forcier (bitprophet) posted:
Beefed up docs a bunch more, looks good now.
on 2011-04-22 at 08:18pm EDT
Move --exclude-hosts docs into its own section, and update changelog/…
Beef up docs, add default env value re #170