title: Ansible etd lookup not working
body: <p>I'm testing etcd as permanent storage for Ansible's dynamic variables.</p>
  <p>Somehow I'm not able to get <code>{{lookup('etcd', '/key')}}</code> to return the value for the key.</p>
  <p>After checking the <a href="https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/lookup/etcd.py" rel="nofollow noreferrer">etcd.py</a> the only thing poping out is the variable for ANSIBLE_ETCD_URL which has been exported <code>export ANSIBLE_ETCD_URL='http://localhost:2379'</code></p>
  <p><strong>play</strong>:</p>
  <pre><code>- name: lookup etcd
    debug: {msg: &quot;{{lookup('etcd', '/key')}}&quot;}
  </code></pre>
  <p><strong>etcd value:</strong></p>
  <pre><code>$ etcdctl get key
  value
  </code></pre>
  <p><strong>What I'm getting in Ansible:</strong></p>
  <pre><code>TASK [lookup etcd] *************************************************************************************************************************************************
  task path: /home/michal/gits/softcat/platforms-ansible-plays/when_defined.yaml:37
  ok: [127.0.0.1] =&gt; {
      &quot;msg&quot;: &quot;&quot;
  }
  </code></pre>
  <p><strong>setup:</strong>
  etcd Version: 2.2.5
  ansible 2.3.2.0
  pyetcd (1.7.2)</p>
  <p><strong>Question:</strong>
  How can I get this working, is there an extra python library needed for it to work?</p>