mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Limit seperator docs.
This commit is contained in:
parent
9870224991
commit
c8d004434f
1 changed files with 2 additions and 0 deletions
|
@ -226,6 +226,8 @@ also works with ``ansible-playbook``::
|
||||||
|
|
||||||
$ ansible webservers:dbservers -m command -a "/bin/foo xyz" --limit region
|
$ ansible webservers:dbservers -m command -a "/bin/foo xyz" --limit region
|
||||||
|
|
||||||
|
As with other host patterns, values to limit can be seperated with ";", ":", or ",".
|
||||||
|
|
||||||
Now let's talk about range selection. Suppose you have 1000 servers in group 'datacenter', but only want to target one at a time. This is also easy::
|
Now let's talk about range selection. Suppose you have 1000 servers in group 'datacenter', but only want to target one at a time. This is also easy::
|
||||||
|
|
||||||
$ ansible webservers[0-99] -m command -a "/bin/foo xyz"
|
$ ansible webservers[0-99] -m command -a "/bin/foo xyz"
|
||||||
|
|
Loading…
Reference in a new issue