Role logs out private SSH key
Opis
Task copy provided ssh RSA keys
loguje prywatny klucz SSH na stdout, można to zmienić więc zróbmy to.
przyklad logu
TASK [ssh : copy provided ssh RSA keys] ****************************************
Monday 19 August 2024 12:36:15 +0000 (0:00:00.046) 0:00:01.760 *********
included: /root/.ansible/roles/ssh/tasks/keys_save.yml for localhost => (item={'user': 'root', 'key': '-----BEGIN OPENSSH PRIVATE KEY-----\nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==\n-----END OPENSSH PRIVATE KEY-----\n'})
klucz został podmieniony na XXXX