beastman.kojak
Ansible not usable
There are security implications for turning off strict host key checking. As an alternative, you could probably add the target host to the known hosts in step 4 when you set the file permissions, but I haven't tested that.
15 replies
Ansible not usable
Hi @heavytobi, I was having similar issues with ansible and found your question. Here's what I did to solve it. For my setup, I have an ssh key that I generated specifically for windmill and added that in the
1. add some settings to the inventory file 2. Copy the private key into a secret varialble. NOTE: There MUST be a newline at the end of the file, otherwise you will get other errors. 3. In the ansible script, create a file for the ssh key: 4. Set the proper permissions on the private key file before connecting to the remote host. You will get an error if the permissions are not correct.
authorized_keys
file on the target host.1. add some settings to the inventory file 2. Copy the private key into a secret varialble. NOTE: There MUST be a newline at the end of the file, otherwise you will get other errors. 3. In the ansible script, create a file for the ssh key: 4. Set the proper permissions on the private key file before connecting to the remote host. You will get an error if the permissions are not correct.
15 replies