On 3/20/21 2:07 PM, amkur p wrote:
> Thank you Stefan for your response.
>
> That also didnt worked. Got the below error. It is a syntax error.
>
> fatal: [localhost]: FAILED! => {
> "msg": "template error while templating string: expected token ',', got
> '='. String: {{
>
Thank you Stefan for your response.
That also didnt worked. Got the below error. It is a syntax error.
fatal: [localhost]: FAILED! => {
"msg": "template error while templating string: expected token ',', got
'='. String: {{ lookup('aws_secret'=DigiCertCA, bypath=true,
region='us-east-1',
On 3/20/21 12:03 PM, amkur p wrote:
> Thank you for your response, that too didnt worked out. Got the templating
> type error
>
> fatal: [localhost]: FAILED! => {
> "msg": "Unexpected templating type error occurred on ({{
> lookup(aws_secret='DigiCertCA', bypath=true,
> region='us-east-1',
Thank you for your response, that too didnt worked out. Got the templating
type error
fatal: [localhost]: FAILED! => {
"msg": "Unexpected templating type error occurred on ({{
lookup(aws_secret='DigiCertCA', bypath=true, region='us-east-1',
aws_access_key='{{dev_access_key}}',
Remove the single commas on all arguments otherwise they will be literally
interpreted as strings.
wild: "{{ lookup(aws_secret='DigiCertCA', bypath=true, region='us-east-1',
aws_access_key='{{dev_access_key}}', aws_secret_key='{{dev_secret_key}}'
)}}"
On Sat, Mar 20, 2021, 10:30 amkur p wrote:
Hi Community
I wrote the below playbook to fetch an aws secret, but it says syntax
error. So can anyone please advise as what might be going wrong ?
Playbook
---
# including vars from vault, containing access and secret key
- include_vars: ../../../vault_vars.yml
- name: fetch cert key