mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add --vault-id support to ansible-pull
Without this additional code snippet `ansible-pull` will still accept the `--vault-id` option. It just won't pass the option along when invoking `ansible-pull`.
This commit is contained in:
parent
2bc4c4f156
commit
7bd54a51e2
1 changed files with 3 additions and 0 deletions
|
@ -239,6 +239,9 @@ class PullCLI(CLI):
|
|||
if self.options.vault_password_files:
|
||||
for vault_password_file in self.options.vault_password_files:
|
||||
cmd += " --vault-password-file=%s" % vault_password_file
|
||||
if self.options.vault_ids:
|
||||
for vault_id in self.options.vault_ids:
|
||||
cmd += " --vault-id=%s" % vault_id
|
||||
|
||||
for ev in self.options.extra_vars:
|
||||
cmd += ' -e "%s"' % ev
|
||||
|
|
Loading…
Reference in a new issue