diff --git a/playbook.yml b/playbook.yml index 97b0089..602cdb2 100644 --- a/playbook.yml +++ b/playbook.yml @@ -74,8 +74,8 @@ - name: Store public keys ansible.builtin.known_hosts: - name: "{{ item.item.name }}" - key: "{{ item.stdout }}" + name: "{{ item.item.name | lower }}" + key: "{{ item.item.name | lower }},{{ item.stdout }}" state: present path: ~/.ssh/known_hosts with_items: "{{ publickeys.results }}"