Inject hostname to ssh-keyscan output
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 09:46:01 +02:00
parent 8daffc88b2
commit 38871d85fe

View File

@ -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 }}"