- Issue created by @llamech
- ๐ฎ๐ธIceland logip
Hi,
We have been trying to install from this: https://gitlab.com/consensus.enterprises/aegir/aegir3install
And it keeps failing with this error:fatal: [localhost]: 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:aรฆgir:rx:allowโ\nTry 'chmod --help' for more information.\n}). For information on working around this, see https://docs.ansible.com/ansible-core/2.17/playbook_guide/playbooks_priv..."}
We are using a vanilla Ubuntu 22.
Do you have any idea what might be causing this?
Keep up the good work and kind regards, Logi
- ๐จ๐ฆCanada llamech
Hi Logi,
Glad to hear you're finding our example code useful!
fatal: [localhost]: FAILED! => {"msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user...
fatal: [localhost]: FAILED! => {"msg": "Failed to change ownership of the temporary files Ansible (via chmod nor setfacl) needs to create despite connecting as a privileged user
Generally speaking, we've found the cleanest way to address this error on Ubuntu is by ensuring the ACL package is installed, so we do that in our
aegir3up.sh script.But there are a few other ways; some are mentioned in this discussion: https://github.com/georchestra/ansible/issues/55
Note: we are moving away from checking Ansible roles out of git as we do here, toward publishing them on Ansible Galaxy.
Thanks for the reminder to update this issue (or close it, and post a new one) once our migration is complete.