Error: unable to find user root error

Getting unable to find root user error with communit-ee image in AAP.

  • I am using community.vmware module to automate vm create and delete in vxrails.
  • Below command works fine from my local linux machine.
  • ansible-navigator run vm.yml --execution-environment-image Package community-ee-base · GitHub --mode stdout --pull-policy missing
  • but getting below error when try to run the same from AAP.
- Error: unable to find user root: no matching entries in passwd file

How to fix this issue.

Thanks,
Mohan

I have no community-ee or AAP experience but baseed on the error message I would suggest you check if there a root user in /etc/passwd on the server in question?

yes I could find the root user present in the /etc/passwd

If there a root user in /etc/passwd on both the target(s) and controller then I have no further suggestions, sorry.

This role run on the localhost, so there is no inventory I used.
controller means the EE container or controller host?

I’m not using AAP or EEs, but:

looks weird to me. I can’t remember having seen this error with community.vmware before, and I’ve seen a lot. Actually, the modules in the collection don’t care about /etc/passwd because they’re talking to the vSphere (vCenter or ESXi) API. So I guess it has something to do with AAP and / or EEs. Although there might be an issue in case you’re using guest customization. On the other hand, in that case it should also fail if you try to run this manually. Which is not the case, as far as I understand. So ATM looking at the configuration of AAP or the EE is my best bet.

Maybe it would help to provide some more information, like your playbook and where it fails. Or at least the task that fails.

thats the only error in the job output, it does not even start run my playbook.