Please follow the steps to best results.
Open the copy_public_kyes
playbook and change variable public_keys to your list.
public_keys:
- ssh-rsa 121
- ssh-rsa 122
- ssh-rsa 123
ansible-playbook -u centos --private-key=keyforec2.pem copy_public_kyes.yml
Thank you for using my playbook😊