Ansible -Host Key Update troubleshooting

Ansible -Host Key Update troubleshooting

Server reset, host key changed and ansible playbook not working.

Delete the host key

vi /Users/xxx/.ssh/known_hosts

 

ANSIBLE.CFG

[defaults]
host_key_checking = False

 

SCRIPT DEBUG

use the -vvv parameter to run your script and observe the error message. For my case, it’s because of Authentication token manipulation error passwd, therefore I login to remote server update my password. sudo passwd

ansible-playbook XXX-deploy.yml -vvv

 

RESET PASSWORD

SSH login to your remote, change the password.

 

 

Write a Reply or Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.