diff --git a/ansible/plugins/module_utils/parse_secrets_v2.py b/ansible/plugins/module_utils/parse_secrets_v2.py index 5ba63d010..9c6def676 100644 --- a/ansible/plugins/module_utils/parse_secrets_v2.py +++ b/ansible/plugins/module_utils/parse_secrets_v2.py @@ -441,6 +441,9 @@ def _inject_field(self, secret_name, f): if override: self.parsed_secrets[secret_name]["override"].append(f["name"]) + if b64: + self.parsed_secrets[secret_name]["base64"].append(f["name"]) + self.parsed_secrets[secret_name]["fields"][f["name"]] = None self.parsed_secrets[secret_name]["vault_policies"][ f["name"]