consul_kv_info
Manage Consul key/value entries through the native HTTP API
Collection: community.general
Full Name: community.general.consul_kv_info
Synopsis
Manage Consul key/value entries through the native HTTP API
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| host | string | localhost | Consul agent hostname or address | |
| port | int | 8500 | Consul agent HTTP port | |
| scheme | string | http | HTTP or HTTPS protocol | |
| validate_certs | bool | true | Validate the HTTPS server certificate | |
| token | string | Consul ACL token; redacted from results | ||
| ca_path | string | Target PEM CA bundle path | ||
| key | string | yes | Key or recursive prefix | |
| datacenter | string | Datacenter to query or mutate | ||
| recurse | bool | false | Retrieve entries sharing the key prefix |
Example
yaml
- name: Read Consul key/value entries
community.general.consul_kv_info:
key: app/config
register: consul_result