From 46566cd9ac0bfe0a828b9a0fd6e89f37bfdebafe Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Tue, 23 Jul 2019 19:50:07 +0530 Subject: [PATCH] fix(ansible): Make everything verbose --- bench/utils.py | 2 +- playbooks/install.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index 496410d3..c0fd88df 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -814,7 +814,7 @@ def run_playbook(playbook_name, extra_vars=None, tag=None): if not find_executable('ansible'): print("Ansible is needed to run this command, please install it using 'pip install ansible'") sys.exit(1) - args = ['ansible-playbook', '-c', 'local', playbook_name] + args = ['ansible-playbook', '-c', 'local', playbook_name, '-vvvv'] if extra_vars: args.extend(['-e', json.dumps(extra_vars)]) diff --git a/playbooks/install.py b/playbooks/install.py index 670ccbcc..ecabd422 100644 --- a/playbooks/install.py +++ b/playbooks/install.py @@ -310,14 +310,11 @@ def get_extra_vars_json(extra_args): return ('@' + json_path) def run_playbook(playbook_name, sudo=False, extra_vars=None): - args = ['ansible-playbook', '-c', 'local', playbook_name] + args = ['ansible-playbook', '-c', 'local', playbook_name , '-vvvv'] if extra_vars: args.extend(['-e', get_extra_vars_json(extra_vars)]) - if extra_vars.get('verbosity'): - args.append('-vvvv') - if sudo: user = extra_vars.get('user') or getpass.getuser() args.extend(['--become', '--become-user={0}'.format(user)])