Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要针对 Consul 的键/值进行查找。我尝试以这种方式传递令牌,但仍然被拒绝访问。令牌绝对正确。
{{ lookup('consul_kv',item,"token=mysecretoken") }}
您是否尝试过这种语法:
- debug: msg='key contains {{item}}' with_consul_kv: - 'key/to/lookup_one token={{acl_token}}'