41949/playbook-to-add-hosts-to-the-known-hosts-list-ansible
Hey @Kiran, try something like this:
- name: Add EC2 instances as known hosts known_hosts: name: "{{ item.public_ip }}" key: "{{ lookup('pipe', 'ssh-keyscan -t rsa ' + item.public_ip) }}" with_items: "{{ ec2_instances.tagged_instances }}"
Hi@akhtar, You can use the option --list-hosts. It will ...READ MORE
Hi@akhtar, There is a problem with your key. ...READ MORE
Hey @Shakira, follow these steps: Execute the following ...READ MORE
Hi @Hannah, I have this and it ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
When you use docker-compose down, all the ...READ MORE
Ansible provides a feature where you can ...READ MORE
I hadn't created the ssh connection between ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.