mirror of
https://github.com/frappe/bench.git
synced 2025-01-23 15:08:24 +00:00
fix(ansible): Make everything verbose
This commit is contained in:
parent
bdda0419ea
commit
46566cd9ac
@ -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)])
|
||||
|
@ -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)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user