I have created a windows 2019 EC2 instance using Ansible. Once ec2 instance is created i have added the instance into hosts and then created a new play for accessing and executing commands on remote windows server.
Getting below error on ansible play book
UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname 34.219.153.40 : Name or service not known", "unreachable": true}