Just started to play with the new consul goodness.
Is it planned that the only way to specify a consul-agent is via an environment variable ANSIBLE_CONSUL_URL?
In any case I cannot seem to get with_consul_kv to work:
`
$ curl -X GET localhost:8500/v1/kv/foo/bar
[{“CreateIndex”:6760,“ModifyIndex”:6760,“LockIndex”:0,“Key”:“foo/bar”,“Flags”:0,“Value”:“YmF6”}]%
$ consulkv get foo/bar
baz
`
So my key exists on the localhost agent, but
`
- shell: “echo {{item}}”
with_consul_kv: - ‘foo/bar’
`
yields connection refused (where 10.0.136.87 is the same host as above)
`
ASK: [shell echo {{item}}] ***************************************************
fatal: [10.0.136.87] => Error locating ‘foo/bar’ in kv store. Error was (‘Connection aborted.’, error(61, ‘Connection refused’))
`
Anybody else play with this yet?