Ansible is failed for some of the servers while performing user add task

You need to install the indicated package on the target host before trying to manipulate user accounts.

On old RHEL/CentOS 7 systems you should install libselinux-python. On modern systems such as RHEL 8 and Fedora it is named python3-libselinux.