i have created a new ssh token with edureka user and copied the same to another vm which was setup as slave.
now i am trying to use the ansible user module to create a user, i see below error.
192.168.56.101 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"msg": "useradd: Permission denied.\nuseradd: cannot lock /etc/passwd; try again later.\n",
"name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"rc": 1
}
second time i have generated ssh token using root user and trying to copy it to slave machine using ssh-copy-id root@ip...but its asking root pasword, i have given edureka. it didnt work