ansible-pull should respect inventory file settings because, say, Python interpreter path can be non-default on a host

pull/7667/head
Alex Chistyakov 11 years ago
parent ad97c618cf
commit bb1941a906

@ -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")
inv_opts = 'localhost,' if not options.inventory:
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…
Cancel
Save