--- - hosts: "{{ host }}" vars: - name: Set up multiple authorized keys ansible.posix.authorized_key: user: deploy state: present key: '{{ key }}'