I could see in the inventory roleid and secretid created as ansible vault secret so i can use it in my playbook.
secret_id:
__ansible_vault: >
$ANSIBLE_VAULT;1.1;AES256
64306338633133643036396537306534393265626132616165326565656339313535393335326562
**************
However when I use it in let say to see the value or use it in lookup task, it gives below error
{
"msg": "An unhandled exception occurred while templating '{{ secret_id }}'. Error was a <class 'ansible.parsing.vault.AnsibleVaultFormatError'>, original message: Vault format unhexlify error: Odd-length string",
"_ansible_no_log": false
}
I also tried a working ansible vault secret which in debug runs but doesn't show any output which makes sense as you wouldn't want to easily visible in plaintext. But this secret_id fails.