|
|
@ -69,28 +69,15 @@ def _executor_hook(job_queue, result_queue):
|
|
|
|
class Runner(object):
|
|
|
|
class Runner(object):
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self,
|
|
|
|
def __init__(self,
|
|
|
|
host_list=C.DEFAULT_HOST_LIST,
|
|
|
|
host_list=C.DEFAULT_HOST_LIST, module_path=C.DEFAULT_MODULE_PATH,
|
|
|
|
module_path=C.DEFAULT_MODULE_PATH,
|
|
|
|
module_name=C.DEFAULT_MODULE_NAME, module_args=C.DEFAULT_MODULE_ARGS,
|
|
|
|
module_name=C.DEFAULT_MODULE_NAME,
|
|
|
|
forks=C.DEFAULT_FORKS, timeout=C.DEFAULT_TIMEOUT,
|
|
|
|
module_args=C.DEFAULT_MODULE_ARGS,
|
|
|
|
pattern=C.DEFAULT_PATTERN, remote_user=C.DEFAULT_REMOTE_USER,
|
|
|
|
forks=C.DEFAULT_FORKS,
|
|
|
|
remote_pass=C.DEFAULT_REMOTE_PASS, remote_port=C.DEFAULT_REMOTE_PORT,
|
|
|
|
timeout=C.DEFAULT_TIMEOUT,
|
|
|
|
sudo_pass=C.DEFAULT_SUDO_PASS, background=0, basedir=None,
|
|
|
|
pattern=C.DEFAULT_PATTERN,
|
|
|
|
setup_cache=None, transport=C.DEFAULT_TRANSPORT, conditional='True',
|
|
|
|
remote_user=C.DEFAULT_REMOTE_USER,
|
|
|
|
callbacks=None, debug=False, sudo=False, module_vars=None,
|
|
|
|
remote_pass=C.DEFAULT_REMOTE_PASS,
|
|
|
|
is_playbook=False, inventory=None):
|
|
|
|
remote_port=C.DEFAULT_REMOTE_PORT,
|
|
|
|
|
|
|
|
sudo_pass=C.DEFAULT_SUDO_PASS,
|
|
|
|
|
|
|
|
background=0,
|
|
|
|
|
|
|
|
basedir=None,
|
|
|
|
|
|
|
|
setup_cache=None,
|
|
|
|
|
|
|
|
transport=C.DEFAULT_TRANSPORT,
|
|
|
|
|
|
|
|
conditional='True',
|
|
|
|
|
|
|
|
callbacks=None,
|
|
|
|
|
|
|
|
debug=False,
|
|
|
|
|
|
|
|
sudo=False,
|
|
|
|
|
|
|
|
module_vars=None,
|
|
|
|
|
|
|
|
is_playbook=False,
|
|
|
|
|
|
|
|
inventory=None):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
host_list : path to a host list file, like /etc/ansible/hosts
|
|
|
|
host_list : path to a host list file, like /etc/ansible/hosts
|
|
|
|