From fc5090927768a46bc4eec270961f4074409c9daf Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 20 Nov 2019 12:33:28 +0000 Subject: [PATCH] Only set up MATE on Linux --- roles/home-gui/tasks/main.yml | 1 + roles/home-gui/tasks/mate.yml | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/roles/home-gui/tasks/main.yml b/roles/home-gui/tasks/main.yml index 73b31a0..a80e34b 100644 --- a/roles/home-gui/tasks/main.yml +++ b/roles/home-gui/tasks/main.yml @@ -5,3 +5,4 @@ - include: emacs.yml - include: firefox.yml - include: mate.yml + when: ansible_system == 'Linux' diff --git a/roles/home-gui/tasks/mate.yml b/roles/home-gui/tasks/mate.yml index 96d3186..13b2b1d 100644 --- a/roles/home-gui/tasks/mate.yml +++ b/roles/home-gui/tasks/mate.yml @@ -6,30 +6,25 @@ dest: "{{ prefix }}/share/mate-panel/layouts/acp.layout" vars: prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/local' }}" - when: ansible_system == 'Linux' or ansible_system == 'FreeBSD' - name: Set default panel layout dconf: key: /org/mate/panel/general/default-layout value: "'acp'" register: layout_changed - when: ansible_system == 'Linux' - name: Reset panel command: mate-panel --reset || true - when: layout_changed.changed and ansible_system == 'Linux' + when: layout_changed.changed ignore_errors: yes changed_when: false - name: Add cities to clock applet dconf: key: /org/mate/panel/objects/clock/prefs/cities value: ['', '', '', ''] - when: ansible_system == 'Linux' - name: Set workspace switcher to two rows dconf: key: /org/mate/panel/objects/workspace-switcher/prefs/num-rows value: 2 - when: ansible_system == 'Linux' - name: Expand locations in clock dconf: key: /org/mate/panel/objects/clock/prefs/expand-locations value: 'true' - when: ansible_system == 'Linux'