mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Merge pull request #7667 from alexclear/devel
ansible-pull should respect inventory file settings because, say, Python...
This commit is contained in:
commit
11b72df27b
1 changed files with 4 additions and 1 deletions
|
@ -150,7 +150,10 @@ def main(args):
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
print >>sys.stderr, now.strftime("Starting ansible-pull at %F %T")
|
print >>sys.stderr, now.strftime("Starting ansible-pull at %F %T")
|
||||||
|
|
||||||
|
if not options.inventory:
|
||||||
inv_opts = 'localhost,'
|
inv_opts = 'localhost,'
|
||||||
|
else:
|
||||||
|
inv_opts = options.inventory
|
||||||
limit_opts = 'localhost:%s:127.0.0.1' % hostname
|
limit_opts = 'localhost:%s:127.0.0.1' % hostname
|
||||||
repo_opts = "name=%s dest=%s" % (options.url, options.dest)
|
repo_opts = "name=%s dest=%s" % (options.url, options.dest)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue