mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-29 04:23:34 +01:00
Implemented vault password
This commit is contained in:
parent
8e0bb19e49
commit
57c3cfc8fa
2
main.py
2
main.py
@ -23,6 +23,8 @@ def run_ansible_playbook(inventory:str, playbook:str, modes:[bool], limit:str=No
|
|||||||
|
|
||||||
if password_file:
|
if password_file:
|
||||||
cmd.extend(["--vault-password-file", password_file])
|
cmd.extend(["--vault-password-file", password_file])
|
||||||
|
else:
|
||||||
|
cmd.extend(["--ask-vault-pass"])
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
cmd.append("-v")
|
cmd.append("-v")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user