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 - name: Store public keys
ansible.builtin.known_hosts: ansible.builtin.known_hosts:
name: "{{ item.item.name }}" name: "{{ item.item.name | lower }}"
key: "{{ item.stdout }}" key: "{{ item.item.name | lower }},{{ item.stdout }}"
state: present state: present
path: ~/.ssh/known_hosts path: ~/.ssh/known_hosts
with_items: "{{ publickeys.results }}" with_items: "{{ publickeys.results }}"