Open mamedin opened 4 years ago
I could fix the issue using in these tasks:
become: "yes"
become_user: "atom_user"
Seems related to an umask issue. The user I was using in my deploy had umask 0022, and it makes to fail the tasks.
Changing theansible_ssh_user
umask to 0002 fixes the issue. (Was changed in $HOME/.bashrc)
CentOS set the masks for the user in /etc/profile file, this section:
# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`/usr/bin/id -gn`" = "`/usr/bin/id -un`" ]; then
umask 002
else
umask 022
fi
That's the reason this user had umask 022.
I have checked other Atom2.6 deployments on CentOS and it worked because they were using umask 002 for ansible_ssh_user, so it seems we don't need to change the role.
I had some issues when cloning repositories and compiling themes on CentOS: