mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Add -i, -k, and -M to ansible-playbook CLI to match options in /usr/bin/ansible
This commit is contained in:
parent
e4304a0ac5
commit
cbfabcd0fb
3 changed files with 20 additions and 8 deletions
|
@ -242,8 +242,7 @@ class PlayBook(object):
|
|||
handlers = pg['handlers']
|
||||
user = pg.get('user', C.DEFAULT_REMOTE_USER)
|
||||
|
||||
host_file = pg.get('inventory', '/etc/ansible/hosts')
|
||||
self.host_list, groups = ansible.runner.Runner.parse_hosts(host_file)
|
||||
self.host_list, groups = ansible.runner.Runner.parse_hosts(self.host_list)
|
||||
|
||||
if self.verbose:
|
||||
print "PLAY [%s] ****************************\n" % pattern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue