mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Move runner out of __init__.py so it's clear what classes live where.
This commit is contained in:
parent
6eda2cf383
commit
d079c8e5f3
4 changed files with 202 additions and 202 deletions
|
@ -25,7 +25,7 @@ from optparse import OptionParser
|
|||
import json
|
||||
import os
|
||||
import getpass
|
||||
import ansible
|
||||
import ansible.runner
|
||||
import ansible.playbook
|
||||
import ansible.constants as C
|
||||
|
||||
|
@ -65,7 +65,7 @@ class Cli(object):
|
|||
sshpass = getpass.getpass(prompt="SSH password: ")
|
||||
|
||||
if options.playbook is None:
|
||||
return ansible.Runner(
|
||||
return ansible.runner.Runner(
|
||||
module_name=options.module_name,
|
||||
module_path=options.module_path,
|
||||
module_args=options.module_args.split(' '),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue