Inject hostname to ssh-keyscan output
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
8daffc88b2
commit
38871d85fe
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user