Getting error while configuring Ansible

When i gave below command i am getting an error message.

devopsadmin@ip-172-31-4-80:~/.ssh$ ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/home/devopsadmin/.ssh/id_rsa.pub”
The authenticity of host ‘172.31.4.93 (172.31.4.93)’ can’t be established.
ED25519 key fingerprint is SHA256:RXMd1IXxoq7m/BJYZQpc9FJ2PKtRW9c29dS+Zkm0/V0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys
[email protected]: Permission denied (publickey).

To make sure I understand here: the problem is not with ansible, but with ssh-copy-id, yes? If so, my first question is: can you in fact log into [email protected] manually? Your error looks consistent with you not having the correct password. Per the man page for ssh-copy-id,

ssh-copy-id is a script that uses ssh(1) to log into a remote machine (presumably using a login password, so password authentication should be enabled, unless you’ve done some clever use of multiple identities).