Skip to content

Commit

Permalink
Merge pull request #7667 from alexclear/devel
Browse files Browse the repository at this point in the history
ansible-pull should respect inventory file settings because, say, Python...
  • Loading branch information
jimi-c committed Jun 5, 2014
2 parents 7483acd + bb1941a commit 11b72df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/ansible-pull
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 11b72df

Please sign in to comment.