nssswitch.conf not found - Rocky 10

TASK [system/nss : Remove systemd from FST nsswitch.conf] **************************************************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Path /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/nsswitch.conf does not exist !”, “rc”: 257}

  • What version of apnscp are you running?
    revision: 00a61ced4c88f4561164a20c55ab2955ac8fad5b timestamp: 1770036478 ver_maj: 3 ver_min: 2 ver_patch: 0 ver_pre: 00a61ced4 dirty: false debug: true

  • Which version of RHEL or CentOS are you using?
    Rocky Linux release 10.1 (Red Quartz)

  • Can you reproduce this bug reliably? Provide steps. If not, provide steps to the best of your recollection.

Somehow phpmyadmin was not working with system php 8.4, so i downgraded to php 8.2 and things messed up, i ran upcp -sb - and now facing above issue.

Fixed it by doing a:

rm /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/nsswitch.conf
cp /etc/nsswitch.conf /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/nsswitch.conf

and then i also faced this one…:

rm -f /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/pam.d/system-auth
cp /etc/pam.d/system-auth /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/pam.d/system-auth

Now working again and completed.