Interview Prep/Ansible/Privilege Escalation and Python Interpreter Issues

`FAILED! => {"msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: 1, err: chmod: invalid mode: 'A+user:app:rx:allow')"}`

AdvancedTroubleshootingPrivilege Escalation and Python Interpreter Issues
Answer

Likely causes → Both the login user and become_user are unprivileged and the system can't use ACLs (setfacl missing or no ACL support on the filesystem).

Diagnose → which setfacl, mount | grep acl.

Fix → Install acl, enable pipelining (pipelining = True), or as a last resort allow_world_readable_tmpfiles = True.

Prevent → Include acl in the base image and enable pipelining.

All Ansible questions Roadmap: Ansible

More on Privilege Escalation and Python Interpreter Issues