"{{ lookup('vault', 'pki/issue/webserver common_name=\"test.example.com\" 
 ip_sans=\"{{ IP_ADDR }}, {{ 
var=hostvars[inventory_hostname].ansible_ssh_host }}\" format=\"pem\" 
key_bits=4096').certificate }}"

Hi im trying to use a variable inside a lookup statement which I'm using to 
query vault 

I'm using the following plugin https://github.com/jhaals/ansible-vault

Now i've tried it with {{ variable }}, + variable +, var=variable but none 
of these seem to work and i don't know the correct format. 

Is this possible ?

Regards K 

-- 
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/98435701-f710-4dc9-ac69-391bb2f22851%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to