mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 03:42:45 +00:00
added vault password to dataloder creation
This commit is contained in:
@@ -91,9 +91,7 @@ class Cli(object):
|
||||
# read vault_pass from a file
|
||||
vault_pass = read_vault_file(options.vault_password_file)
|
||||
|
||||
|
||||
# FIXME: needs vault password
|
||||
loader = DataLoader()
|
||||
loader = DataLoader(vault_password=vault_pass)
|
||||
variable_manager = VariableManager()
|
||||
|
||||
inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=options.inventory)
|
||||
|
||||
Reference in New Issue
Block a user