Closed ctorgalson closed 2 years ago
I should rtfiq (read-the-f-issue-queue) :D
I see that there is already a PR that's essentially identical to this one (#5), so closing here.
(Also, for anyone coming upon this as the result of a search, the dconf
command can be simpler than gsettings
anyhow).
@ctorgalson unsure if you've seen it, but I merged #5 - thanks for your contributions nevertheless :)
This change makes it possible for the
gsettings set
command in the main tasks file to include the--schemadir
option. This is needed, for example, for setting preferences on newly or manually installed extensions.When a loop item does not include the
schemadir
key, the task operates as it does now.It might have been better to use
|ternary()
instead of jinja2's{% if ... %}...{% endif %}
, but even using the same condition, it didn't work in my testing.@see PeterMosmans/ansible-role-customize-gnome/issues/9