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?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/d46a939c-98ad-4d8b-b809-139ebd1ea562%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.