PARALLAX

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

NameTypeRequiredDefaultDescription
hoststringlocalhostConsul agent hostname or address
portint8500Consul agent HTTP port
schemestringhttpHTTP or HTTPS protocol
validate_certsbooltrueValidate the HTTPS server certificate
tokenstringConsul ACL token; redacted from results
ca_pathstringTarget PEM CA bundle path
keystringyesKey or recursive prefix
datacenterstringDatacenter to query or mutate
recurseboolfalseRetrieve entries sharing the key prefix

Example

yaml
- name: Read Consul key/value entries
  community.general.consul_kv_info:
    key: app/config
  register: consul_result
Search
    ↑ ↓ move↵ openesc close