1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

clarify role filtering docs

This commit is contained in:
Neznaenko Anton 2019-05-31 10:30:34 +03:00
parent 7a14ddb47d
commit cd7c273d9f

View file

@ -12,11 +12,10 @@ match a given role or roles.
If the filter matches no servers, no actions will be taken.
If you specify a filter, it will match any servers that have that role, but
it will _only_ run the tasks for that role, not for any other roles that
server may have. For example, if you filtered for servers with the `web` role,
and a server had both the `web` and `db` role, only the `web` role would
be executed on it.
If you specify a filter, it will match any servers that have that role, and
it will run _all_ tasks for each of the roles that server has. For example,
if you filtered for servers with the `web` role, and a server had both the
`web` and `db` role, both the `web` and `db` role tasks would be executed on it.
### Specifying a role filter