UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ----}
To avoid this you can set the environment variable (ANSIBLE_HOST_KEY_CHECKING) to disable host check before ssh during ansible script execution.
export ANSIBLE_HOST_KEY_CHECKING=False
Now you can execute the ansible script.
No comments:
Post a Comment