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
|
- 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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user