ansible / ansible.builtin / v2.4.3.0-1 / lookup / consul_kv grab metadata from a consul key value store. | "added in version" 1.9 of ansible.builtin" Authors: unknownansible.builtin.consul_kv (v2.4.3.0-1) — lookup
pip
Install with pip install ansible==2.4.3.0.post1
lookup metadata for a playbook from the key value store in a consul cluster. Values can be easily set in the kv store with simple rest commands
curl -X PUT -d 'some-value' http://localhost:8500/v1/kv/ansible/somedata
_raw: description: key(s) to retrieve required: true type: list host: default: localhost description: - the target to connect to, must be a resolvable address. env: - name: ANSIBLE_CONSUL_URL port: default: 8500 description: the port of the target host to connect to. index: description: if the key has a value with the specified index then this is returned allowing access to historical values. token: description: acl token to allow access to restricted values. recurse: default: false description: if true, will retrieve all the values that have the given key as prefix type: boolean
_raw: description: - value(s) stored in consul