Skip to content

Commit

Permalink
gogh: add check for "Default" role, tell user to manually create first
Browse files Browse the repository at this point in the history
supported workaround for Gogh-Co/Gogh#203

"Ubuntu 19.10: default_profile not a valid identifier, command not
found"
  • Loading branch information
kangas committed Nov 1, 2020
1 parent f457e8b commit cbae94b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ansible/roles/gogh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cbae94b

Please sign in to comment.