Beanlogi, my error that I am getting is when copying .pub key to hosts saying it doesnt exist. However, the state of creating ssh key for the user is changed and the key is present in .ssh. Any ideas?
@CB-yc6wz Жыл бұрын
I had to create a sudoers.d file for the admin user in order to be able to ping and run playbooks on the remote hosts even though my ansible.cfg and inventory files all were identical to yours. any idea why? same exact lab setup too.
@beanologi Жыл бұрын
Hi, thanks for pointing this out! It is entirely possible this was a mistake on my end where I practiced doing this on my VMs at an earlier time and didn’t properly reset them for the video. In this case, it would make sense for you to also have a sudoers.d directory creation in your playbook to ensure consistency. I appreciate the tip, take care 👍