I have created a playbook to create a fresh instance out of a cloud image.
Now can somebody please help me to figure-out how can I login to the instance with the key-pair that was used to create the instance. I don't want to use any user other then root to login.
Thanks.
In your hosts
file:
[servercategory]
54.85.136.142 ansible_ssh_private_key_file=~/.ssh/your-ssh-key.pem ansible_ssh_user=root
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.