I have a playbook that requires a value from a vault - but I am
consistently running into issues regarding the existence of this variable
(lets call this variable private_key)
In the vault I have:
foo:
private_key: |
"........."
In the playbook I have:
- { role: bar, bar: {
'private_key': '{{foo.private_key}}',
}
}
The error itself: One or more undefined variables: 'dict object' has no
attribute 'private_key'
When are the values within the vault resolved when running a playbook? Or
am I approaching the use of vault values the incorrect way?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2b26dd67-f214-4e2c-ab22-57d02a27c108%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.