From fcae2dc8ddee67212cac0586f2781a9443fb0900 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 19 Jul 2021 10:10:07 -0500 Subject: [PATCH] Super try to make sure that the comma only gets created when needed. --- tasks/workstation/settings/gnome.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/workstation/settings/gnome.yml b/tasks/workstation/settings/gnome.yml index 8e92111..82a1d2e 100644 --- a/tasks/workstation/settings/gnome.yml +++ b/tasks/workstation/settings/gnome.yml @@ -62,6 +62,11 @@ register: gnome_enabled_extensions when: dash_to_dock_exists.failed +- name: Workstation | Account Management | GNOME | Dash To Dock | dconf Return Object + debug: + var: gnome_enabled_extensions + when: dash_to_dock_exists.failed + # https://ansible-docs.readthedocs.io/zh/stable-2.0/rst/playbooks_filters.html#filters-for-formatting-data - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 1 @@ -70,10 +75,15 @@ dash_to_dock_ext_comma: "" when: dash_to_dock_exists.failed +- name: Workstation | Account Management | GNOME | Dash To Dock | After replace() + debug: + var: gnome_enabled_extensions + when: dash_to_dock_exists.failed + - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 2 set_fact: dash_to_dock_ext_comma: ", " - when: dash_to_dock_exists.failed and gnome_enabled_extensions != "[]" and gnome_enabled_extensions != [] + when: dash_to_dock_exists.failed and gnome_enabled_extensions not in ("[]", [], "None") - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 3 set_fact: