This repository has been archived on 2021-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
csc-playbooks/gather-ssh-fingerprints.yml

9 lines
356 B
YAML
Raw Normal View History

---
- hosts: all
tasks:
- name: get fingerprints
fetch: src={{ item.src }} dest={{ item.dest }} flat=yes
with_items:
- { src: '/etc/ssh/ssh_host_rsa_key.pub', dest: 'fingerprints/{{ ansible_hostname }}_rsa.pub' }
- { src: '/etc/ssh/ssh_host_ed25519_key.pub', dest: 'fingerprints/{{ ansible_hostname }}_ed25519.pub' }