- name: Set SSH authorized keys from files
  authorized_key:
    user: "{{ user }}"
    state: present
    exclusive: True
    key: "{{ lookup('file', 'ssh-keys') }}"

- name: Set SSH authorized keys from files
  copy:
    content: "{{ lookup('file', 'ssh-keys') }}"
    dest: "~{{ user }}/.ssh/authorized_keys"
    owner: "{{ user }}"
    group: "{{ user }}"

Move users role to plain file copy
ansible: Move users role to plain file copy

The authorized_key module is being too clever and does not recognize the
yubikey format from commit 2a15d66f41. Let's just copy the file as-is.
