mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
added ability to limit in ansilbe pull
refactored the options a bit, new inventory_opts made sense to always group fixes #7917
This commit is contained in:
@@ -52,6 +52,7 @@ class PullCLI(CLI):
|
||||
vault_opts=True,
|
||||
runtask_opts=True,
|
||||
subset_opts=True,
|
||||
inventory_opts=True,
|
||||
)
|
||||
|
||||
# options unique to pull
|
||||
@@ -182,6 +183,8 @@ class PullCLI(CLI):
|
||||
cmd += ' -K'
|
||||
if self.options.tags:
|
||||
cmd += ' -t "%s"' % self.options.tags
|
||||
if self.options.limit:
|
||||
cmd += ' -l "%s"' % self.options.limit
|
||||
|
||||
os.chdir(self.options.dest)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user