Closed evgeni closed 2 years ago
Sometimes, if you rsync /var/lib/pulp from a different machine, it ends up being owned by a UID/GID that has no mapping on the new system.
/var/lib/pulp
Ansible's stat module then doesn't populate the pw_name and gr_name attributes, leading to errors like this:
stat
pw_name
gr_name
error while evaluating conditional (pulp_stat.stat.pw_name != 'pulp' or pulp_stat.stat.gr_name != 'pulp'): 'dict object' has no attribute 'pw_name'
Catch those cases and still properly fix the permissions.
Sometimes, if you rsync
/var/lib/pulp
from a different machine, it ends up being owned by a UID/GID that has no mapping on the new system.Ansible's
stat
module then doesn't populate thepw_name
andgr_name
attributes, leading to errors like this:Catch those cases and still properly fix the permissions.