mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07: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:
parent
1acb29ff9b
commit
17b4b1f85c
4 changed files with 12 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue