From cbae94bf1959c07b5c6b3a62aee86ac6c39e5e62 Mon Sep 17 00:00:00 2001 From: Matt Kangas Date: Sun, 1 Nov 2020 16:49:23 -0500 Subject: [PATCH] gogh: add check for "Default" role, tell user to manually create first supported workaround for https://github.com/Mayccoll/Gogh/issues/203 "Ubuntu 19.10: default_profile not a valid identifier, command not found" --- ansible/roles/gogh/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ansible/roles/gogh/tasks/main.yml b/ansible/roles/gogh/tasks/main.yml index fdcb587..004c8db 100644 --- a/ansible/roles/gogh/tasks/main.yml +++ b/ansible/roles/gogh/tasks/main.yml @@ -12,6 +12,21 @@ dest: '{{ ansible_env.HOME }}/src/gogh' update: no +# On Ubuntu, ensure that a profile named "Default" is created first, +# else Ubuntu 19.10+ will fail +# https://github.com/Mayccoll/Gogh/issues/203 + +- name: Look for existing profiles + command: dconf list /org/gnome/terminal/ + register: dconf_list_terminal + when: ansible_distribution == "Ubuntu" + +- name: Confirm Default profile exists + assert: + that: dconf_list_terminal.stdout != "" + fail_msg: "Missing prerequisite: Please manually create a 'Default' profile in Terminal and retry." + when: ansible_distribution == "Ubuntu" + - name: Install Gogh themes shell: cmd: './{{ item }}.sh'