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:
Brian Coca 2015-08-18 03:17:58 -04:00
parent 1acb29ff9b
commit 17b4b1f85c
4 changed files with 12 additions and 9 deletions

View file

@ -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)