I'm playing with the Ansible Hands On lab with NXOS Sandbox
On step 3, I understand the purpose is to create a playbook to copy a customized hosts file to replace the default hosts files stored in /etc/hosts
However, when I run the playbook as per the lab instruction, the `push new host file` task failed as it aks for sudo password
TASK [Push new host file] *******************************************************************************************************************************************************************************************************************
fatal: [10.10.20.50]: FAILED! => {"msg": "Failed to get information on remote file (/etc/hosts): sudo: a password is required\n"}
Then I try to copy the customized hosts by myself via
$ sudo cp -r files/hosts /etc/hosts
This cmd also failed:
developer is not in the sudoers file. This incident will be reported.
It seems the user "developer" created for NXOS Sandbox does not have sudo right.
Can anyone please advise how to proceed with this lab as a user without sudo right?