[CentOS] Delete local user/group but not LDAP one

Fri Nov 26 06:30:22 UTC 2021
Gordon Messmer <gordon.messmer at gmail.com>

On 11/25/21 21:24, Thomas Mueller wrote:
> at least it seems that save, that ansible
> * 
> https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L625 
>
> * 
> https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/user.py#L640-L643 
>
>
> and puppet
> * 
> https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/user/useradd.rb#L12 
>
>
> are using it, when you specify "local=yes" or "forcelocal=true".


I suppose someone should file bug reports.  luserdel probably could be 
used to confine actions to the local host, as long as ansible/puppet 
provided their own libuser.conf and set the LIBUSER_CONF to the path of 
that file...