<p dir="auto">As of commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/43f48a2e021f12cfe3547904ce0a97c7dfdbf893/hovercard" href="https://github.com/ansible/ansible/commit/43f48a2e021f12cfe3547904ce0a97c7dfdbf893"><tt>43f48a2</tt></a> the authorized_keys module isn't behaving the same as previously...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [authorized_key user=root key=&quot;{{lookup('file', '~/.ssh/id_rsa.pub')}}&quot;] *** 
fatal: [192.168.251.101] =&gt; failed to parse: Traceback (most recent call last):
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 1306, in &lt;module&gt;
    main()
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 367, in main
    results = enforce_state(module, module.params)
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key&quot;, line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.102] =&gt; failed to parse: Traceback (most recent call last):
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 1306, in &lt;module&gt;
    main()
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 367, in main
    results = enforce_state(module, module.params)
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key&quot;, line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.103] =&gt; failed to parse: Traceback (most recent call last):
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 1306, in &lt;module&gt;
    main()
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 367, in main
    results = enforce_state(module, module.params)
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key&quot;, line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.100] =&gt; failed to parse: Traceback (most recent call last):
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 1306, in &lt;module&gt;
    main()
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 367, in main
    results = enforce_state(module, module.params)
  File &quot;/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key&quot;, line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str


FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">TASK: [authorized_key user=root key="{{lookup('file', '~/.ssh/id_rsa.pub')}}"] *** 
fatal: [192.168.251.101] =&gt; failed to parse: Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 1306, in &lt;module&gt;
    main()
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 367, in main
    results = enforce_state(module, module.params)
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-265029518752899/authorized_key", line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.102] =&gt; failed to parse: Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 1306, in &lt;module&gt;
    main()
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 367, in main
    results = enforce_state(module, module.params)
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-217556902122643/authorized_key", line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.103] =&gt; failed to parse: Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 1306, in &lt;module&gt;
    main()
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 367, in main
    results = enforce_state(module, module.params)
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.31-93600817829628/authorized_key", line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [192.168.251.100] =&gt; failed to parse: Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 1306, in &lt;module&gt;
    main()
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 367, in main
    results = enforce_state(module, module.params)
  File "/home/vagrant/.ansible/tmp/ansible-1382758475.3-50489411809009/authorized_key", line 338, in enforce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str


FATAL: all hosts have already failed -- aborting
</code></pre></div>
<pre class="notranslate">ok: [shd9.quantifind.com] =&gt; (item={'comment': 'Ruoke Yang, Intern', 'shell': '/bin/bash', 'name':
'ruoke', 'home': '/home/ruoke', 'password': u'$6$qFindR0x$KHFkjjDgTaSbTCDROJ1cmPiPP9/heZaNtfPy8ROYF
CIrjqUezDTZYS9ic2u89R6Cl6AgCNb4ETkasZwbI2t7C.', 'id': 2035})
fatal: [shd6.quantifind.com] =&gt; failed to parse: Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 1303, in 
    main()
  File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 364, in main
    results = enforce_state(module, module.params)
  File "/root/.ansible/tmp/ansible-1382148491.98-47941295244299/authorized_key", line 335, in enfor
ce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

fatal: [shd7.quantifind.com] =&gt; failed to parse: Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 1303, in 
    main()
  File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 364, in main
    results = enforce_state(module, module.params)
  File "/root/.ansible/tmp/ansible-1382148491.98-84956261098277/authorized_key", line 335, in enfor
ce_state
    existing_keys[parsed_new_key[0]] = parsed_new_key
TypeError: list indices must be integers, not str

changed: [shm0.quantifind.com] =&gt; (item={'comment': 'ItOps - Primary Operations Shared User', 'shel
l': '/bin/zsh', 'name': 'itops', 'home': '/home/itops', 'password': u'$6$jwVKWtNiBrQs$6bYNYuC5Qmrdv
SKGIRqSx/9C8.yOucK1qt.cktZlCPQEAzzvL8sTCkWj0Y2EU0nsxHkLBmngQPlR7VfmhG6MI/', 'id': 1500})
ok: [shd9.quantifind.com] =&gt; (item={'comment': 'Jason Sobel, VP Engineering', 'shell': '/bin/bash',
 'name': 'jason', 'home': '/home/jason', 'password': u'$6$mUG.17HloQ0AsJO$nP6fpdiH.CwBqpZQ5/6CNAseM
vVQ6kptG74bxkSWtqrsesomkQT88YvtDxBzqA/HDlNiq4Nj1kCLZLrGwI6.o1', 'id': 2036})
</pre>