mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-29 12:33:33 +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:
|
||||
cmd.extend(["--vault-password-file", password_file])
|
||||
else:
|
||||
cmd.extend(["--ask-vault-pass"])
|
||||
|
||||
if verbose:
|
||||
cmd.append("-v")
|
||||
|
Loading…
x
Reference in New Issue
Block a user