startxfr/libre

perm problem on /tmp/libre.txt when instructor uninstall

Closed this issue · 0 comments

When executing libre-instructor uninstall you get a error (not blocking) explaining that group libre doesn't exist. This is normal as we removed his group previous to this install.

Example output :

TASK [uninstall : libre : Generate LIBRE report at /tmp/libre.txt] *************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "e60fbb2c6c40ef66d5bb5c227972f4d49b24bc39", "gid": 0, "group": "root", "mode": "0644", "msg": "chgrp failed: failed to look up group libre", "owner": "root", "path": "/tmp/libre.txt", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 46, "state": "file", "uid": 0}
	to retry, use: --limit @/usr/local/lib/libre-ansible/playbooks/instructor/uninstall.retry

short Solution is problably to remove generation of report on uninstalll
long term solution is to change all calls to Generate LIBRE report to pass a variable with the user and group to use