ansible-role-customize-gnome icon indicating copy to clipboard operation
ansible-role-customize-gnome copied to clipboard

Consider using dconf module

Open radek-sprta opened this issue 3 years ago • 2 comments
trafficstars

Hello, I think it might be worth considering using the dconf module (https://docs.ansible.com/ansible/latest/collections/community/general/dconf_module.html) over command. It seams to work better at least in some cases. The following fails with customize_gnome

gnome_dconf:
- key: /org/gnome/desktop/wm/preferences/button-layout                                                                                                                       
  value: "'close,minimize,maximize:'"

returning

error: 0-5:unknown keyword

But it works fine, when using dconf module.

radek-sprta avatar Feb 18 '22 08:02 radek-sprta

Hi @radek-sprta - thanks for the suggestion. Yeah, using that module seems like a nicer way forward. However, this also implies some more dependencies (as in: the community collection). I'll dive into it.

PeterMosmans avatar Feb 18 '22 11:02 PeterMosmans

I was having a few issues with the dconf aspect of the module too. When installing extensions sync, the gnome_dconf didn't like me submitting the github-gist-id and git-hub-user-token

rupert160 avatar May 27 '22 13:05 rupert160

Hi @radek-sprta - I've implemented the 'native' dconf module, and your example now works (again). Please see version 0.2.8.

Thanks for your suggestion!

PeterMosmans avatar Oct 04 '22 11:10 PeterMosmans

It's working perfectly with all my dconf settings now. Thanks for the work!

radek-sprta avatar Oct 12 '22 18:10 radek-sprta