HOSTFILTER do not work as I wanted, indeed HOSTFILTER behaves the same as my ROLES try.
(pastie whit new output)
http://pastie.org/8764556I want to partially apply a series of tasks and my problem is not to limiting servers.
My problem is once I limit server via HOSTS, ROLES, HOSTFILTER or HOSTROLEFILTER the servers chosen behaves like it belongs to all roles and apply tasks I dont want to apply in a chain. And I need a way to limit servers which only apply the tasks which belogns to the roles declared in the limited servers
So my goal with this (simple example) Capfile
http://pastie.org/8764626 is be able to limit server only to 127.1.1.1 and apply only do_all -> do_db and not do_app and do_web
But sems that the code behind ROLES stuff states "Pick the servers whit role <$ROLES> and apply to it all tasks" instead of "Pick the servers whit role <$ROLES> and apply to it <$ROLES> tasks"