diff options
author | Tim Rozet <trozet@redhat.com> | 2017-09-07 19:53:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-07 19:53:18 +0000 |
commit | b196fa91f1b2b418a2fae558573b77e9895dccfb (patch) | |
tree | 80b9070f4a3b3636010903ae98bc885e4e1c1542 | |
parent | 50214cbfb2a815c3b397810bf34c94e50cb68801 (diff) | |
parent | d1131e2121dd8a5532660ebdd1be4cc14dd955dc (diff) |
Merge "Output ansible's output to info log"
-rw-r--r-- | apex/common/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apex/common/utils.py b/apex/common/utils.py index 848f2644..e21ab835 100644 --- a/apex/common/utils.py +++ b/apex/common/utils.py @@ -76,7 +76,7 @@ def run_ansible(ansible_vars, playbook, host='localhost', user='root', else: conn_type = 'smart' ansible_command = ['ansible-playbook', '--become', '-i', inv_host, - '-u', user, '-c', conn_type, playbook, '-vvv'] + '-u', user, '-c', conn_type, playbook, '-vv'] if dry_run: ansible_command.append('--check') @@ -99,8 +99,8 @@ def run_ansible(ansible_vars, playbook, host='localhost', user='root', my_env = os.environ.copy() my_env['ANSIBLE_HOST_KEY_CHECKING'] = 'False' logging.info("Executing playbook...this may take some time") - logging.debug(subprocess.check_output(ansible_command, env=my_env, - stderr=subprocess.STDOUT).decode('utf-8')) + logging.info(subprocess.check_output(ansible_command, env=my_env, + stderr=subprocess.STDOUT).decode('utf-8')) except subprocess.CalledProcessError as e: logging.error("Error executing ansible: {}".format( pprint.pformat(e.output.decode('utf-8')))) |