<p dir="auto">Task:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: install authorized keys
  action: authorized_key user={{item}} key=&quot;{{ lookup('file', 'authorized_keys') }}&quot;
  with_items: ssh_key_users"><pre class="notranslate"><code class="notranslate">- name: install authorized keys
  action: authorized_key user={{item}} key="{{ lookup('file', 'authorized_keys') }}"
  with_items: ssh_key_users
</code></pre></div>
<p dir="auto">This worked under ansible 1.3.3. With devel branch I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [ssh_key | install authorized keys] *************************************
fatal: [ubutest] =&gt; One or more undefined variables: 'lookup' is undefined

FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">TASK: [ssh_key | install authorized keys] *************************************
fatal: [ubutest] =&gt; One or more undefined variables: 'lookup' is undefined

FATAL: all hosts have already failed -- aborting
</code></pre></div>
<p dir="auto">The following documented use of the lookup plugin</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: all
  tasks:
     - debug: msg=&quot;{{ lookup('env','HOME') }} is an environment variable&quot;"><pre class="notranslate"><code class="notranslate">
---
- hosts: all
  tasks:
     - debug: msg="{{ lookup('env','HOME') }} is an environment variable"
</code></pre></div>
<p dir="auto">now generates the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [debug msg=&quot;{{lookup('env','HOME')}} is an environment variable&quot;] ******* 
fatal: [localhost] =&gt; One or more undefined variables: 'lookup' is undefined"><pre class="notranslate"><code class="notranslate">TASK: [debug msg="{{lookup('env','HOME')}} is an environment variable"] ******* 
fatal: [localhost] =&gt; One or more undefined variables: 'lookup' is undefined
</code></pre></div>
<p dir="auto">I've traced this back to commit 5031104.</p>