- name: Add SSH CA to known hosts known_hosts: key: '@cert-authority {{ item.domain }} {{ item.key }}' name: '@cert-authority {{ item.domain }}' path: /etc/ssh/ssh_known_hosts loop: '{{ ssh_ca_known_hosts }}'