I think i did correct only, but task failed with error “User james does not have non-interactive shell”
[root@stapp01 ~]# cat /etc/passwd | grep james
[root@stapp01 ~]# grep james /etc/passwd /etc/shadow
/etc/passwd:james:x:999:997::/home/james:/bin/nologin
/etc/shadow:james:!!:18328::::::
can someone please check.