Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Pull request for exclude_hosts feature #170

bitprophet opened this Issue · 3 comments

1 participant



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:


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

@bitprophet bitprophet was assigned

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

@bitprophet bitprophet closed this
@ramonvanalteren ramonvanalteren referenced this issue from a commit in ramonvanalteren/fabric
@bitprophet bitprophet Beef up docs, add default env value re #170 aec6376
@npt npt referenced this issue from a commit in npt/fabric
@goosemo goosemo Merged in Casey Banner's work for #170, Fixed conflicts and also made…
… a failing test pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.