You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use setfacl (acl package) instead of enabling allow_world_readable_tmpfiles
If the temporary directory on the remote host is mounted with POSIX acls enabled and the setfacl tool is in the remote PATH then Ansible will use POSIX acls to share the module file with the second unprivileged user instead of having to make the file readable by everyone.
This also avoids the warning:
[WARNING]: Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user. This may be insecure. For information on securing this, see
https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
Copy file name to clipboardExpand all lines: ansible.cfg
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
inventory = ./inventory
3
3
display_skipped_hosts = false
4
4
remote_tmp = /tmp/${USER}/ansible
5
-
allow_world_readable_tmpfiles = true
5
+
allow_world_readable_tmpfiles = false # or "true" if the temporary directory on the remote host is mounted with POSIX acls disabled or the remote machines use ZFS.
0 commit comments