ansible-python3-role
ansible-python3-role copied to clipboard
Permission denied during cleanup
RUNNING HANDLER [mdklatt.tmpdir : tmpdir remove] ******************************* fatal: [electrumx.multicoin.co]: FAILED! => {"changed": false, "msg": "rmtree failed: [Errno 13] Permission denied: '/tmp/ansible.nslmf_jp'"}
@ahmedbodi
It looks like you're doing a pyenv installation as a user other than ansible_user_id. You need to set tmpdir_force to true, which will remove the python3_tmpdir directory with privilege escalation.
roles:
- name: python3
python3_pyenv: "..."
tmpdir_force: true
Need to add better documentation for pyenv installation as an alternate user.