From bb1941a906e3716a003dff729d9db385fb75b4fc Mon Sep 17 00:00:00 2001 From: Alex Chistyakov Date: Thu, 5 Jun 2014 01:37:41 +0400 Subject: [PATCH] ansible-pull should respect inventory file settings because, say, Python interpreter path can be non-default on a host --- bin/ansible-pull | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/ansible-pull b/bin/ansible-pull index 83f281463f5..8c624f4ef28 100755 --- a/bin/ansible-pull +++ b/bin/ansible-pull @@ -150,7 +150,10 @@ def main(args): now = datetime.datetime.now() 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 repo_opts = "name=%s dest=%s" % (options.url, options.dest)