Module nxos_user not recognizing fails saying role is invalid

Hi everybody,

I wrote this playbook to create a new role in Nexus OS and then create a new user to use that role.
The role gets created but when it’s time for the second task to create the role it fails with a non-existent role error.

I had the same problem. It seem like it is a shortcoming of the nxos_user module. It seems like roles are checked against a hard-coded list of standard roles, and the module can’t work with user defined roles at all.

Thanks,
Alex

Got it ! Thanks Alex for taking the time to respond !

Elie