csmart / ansible-role-virt-infra

Define and manage guests and networks on a KVM host with Ansible
GNU General Public License v3.0
67 stars 48 forks source link

fix ssh config when keys are specified #53

Closed csmart closed 2 years ago

csmart commented 2 years ago

In the commit to enable support for multiple KVM hosts, I made a mistake and wrote keys into ~/.ssh/config when they were defined, however I forgot that these are key contents, not the files.

This breaks the ability to SSH into the VMs as the config is not valid.

This patch reverts this to previous code, which only writes the identity file if none are specified.