Point marker to Ansible lookup

I need to send a Consul key / value request. I tried passing the token this way, but I still get access denied. The token is definitely correct.

{{ lookup('consul_kv',item,"token=mysecretoken") }}
+4
source share
1 answer

Have you tried this syntax:

- debug: msg='key contains {{item}}'
  with_consul_kv:
    - 'key/to/lookup_one token={{acl_token}}'
+2
source

All Articles