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