8c7ceaab81
Problem: When setting the file permissions on the remote server for unprivileged users ansible expects that a chown will fail for unprivileged users. For some systems (e.g. HP-UX) this is not the case. Solution: Change the order how ansible sets the remote permissions. * If the remote_user sudo's to an unprivileged user then we attempt to grant the unprivileged user access via file system acls. * If granting file system acls fails we try to change the owner of the file with chown which only works in case the remote_user is privileged or the remote systems allows chown calls by unprivileged users (e.g. HP-UX) * If the chown fails we can set the file to be world readable so that the second unprivileged user can read the file. Since this could allow other users to get access to private information we only do this ansible is configured with "allow_world_readable_tmpfiles" in the ansible.cfg |
||
---|---|---|
.. | ||
ansible |