PeterMosmans / ansible-role-customize-gnome

Ansible role that customizes the GNOME desktop. It installs fonts and GNOME extensions from packages or zip files, copies files like desktop backgrounds and GNOME shell tweaks to a host, and modifies user settings.
GNU General Public License v3.0
74 stars 20 forks source link

Create and clean temp directory instead use of /tmp/ #35

Closed scrool closed 10 months ago

scrool commented 10 months ago

Before this change tasks used /tmp as a parent directory for listing installed extensions and downloading extensions.

If the role was run under user that doesn't have write permissions to /tmp it failed. On the top of that role cleaned up only lists and not downloaded extensions.

After this change a temp directory is created with gnome_user permissions. Extensions are now downloaded also with become_user: gnome_user. After the run whole temp directory is removed by the handler.

PeterMosmans commented 10 months ago

Hey @scrool , thank you so much for your pull request. I'll be reviewing and testing the changes soon.