mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Docstring for v2 inventory.subset
This commit is contained in:
parent
8b8a4dd572
commit
5fe5e2d3f4
1 changed files with 6 additions and 0 deletions
|
@ -58,6 +58,12 @@ class Inventory:
|
|||
def also_restrict_to(self, restriction):
|
||||
pass
|
||||
def subset(self, subset_pattern):
|
||||
"""
|
||||
Limits inventory results to a subset of inventory that matches a given
|
||||
pattern, such as to select a given geographic of numeric slice amongst
|
||||
a previous 'hosts' selection that only select roles, or vice versa...
|
||||
Corresponds to --limit parameter to ansible-playbook
|
||||
"""
|
||||
pass
|
||||
def lift_restriction(self):
|
||||
# HACK --
|
||||
|
|
Loading…
Reference in a new issue