Looping over Subelements example incorrect?

Hi,

Just tried out the authorize_key example in the 'Looping over Subelements' section of the docs [1] and wonder if it's incorrect?

When I try the example it only saves the last key instead of all of them. Copy of example and output below.

I'm using Ansible 1.7.1.

Thanks,
Patrick

[1] http://docs.ansible.com/playbooks_loops.html#looping-over-subelements

vars:

users:
   - name: alice
     authorized:
       - roles/builder/files/alice/onekey.pub
       - roles/builder/files/alice/twokey.pub
       - roles/builder/files/bob/id_rsa.pub

tasks:

- name: Add authorized_keys
   authorized_key:
     user: "{{ item.0.name }}"
     key: "{{ lookup('file', item.1) }}"
   with_subelements:
     - users
     - authorized

TASK: [builder | builder | Add authorized_keys]

Apologies for replying to myself. Figured it out and thought I'd share for the archives: the example is correct. Using the same key with a different comment and filename is not enough to count as unique. With separately generated keys the example works great.

HTH,
Patrick