- name: Set up multiple authorized keys ansible.posix.authorized_key: user: root state: present key: '{{ item }}' with_file: - public_keys/zabbix