From df70172d99a66b05c1f35859e77cbca9e19921d0 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 12 Oct 2019 10:49:20 +0100 Subject: [PATCH] Stop using 'pids' module --- roles/home/tasks/mate.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/roles/home/tasks/mate.yml b/roles/home/tasks/mate.yml index 335661c..af9ae51 100644 --- a/roles/home/tasks/mate.yml +++ b/roles/home/tasks/mate.yml @@ -6,32 +6,29 @@ dest: "{{ prefix }}/share/mate-panel/layouts/acp.layout" vars: prefix: "{{ '/usr' if ansible_system == 'Linux' else '/usr/local' }}" -- name: Detect running mate-panel process - pids: - name: mate-panel - register: mate_panel - name: Set default panel layout dconf: key: /org/mate/panel/general/default-layout value: "'acp'" register: layout_changed - when: mate_panel.pids | length > 0 and ansible_system == 'Linux' + when: ansible_system == 'Linux' - name: Reset panel command: mate-panel --reset || true - when: layout_changed.changed and mate_panel.pids | length > 0 and ansible_system == 'Linux' + when: layout_changed.changed and ansible_system == 'Linux' + ignore_errors: yes changed_when: false - name: Add cities to clock applet dconf: key: /org/mate/panel/objects/clock/prefs/cities value: ['', '', '', ''] - when: mate_panel.pids | length > 0 and ansible_system == 'Linux' + 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: mate_panel.pids | length > 0 and ansible_system == 'Linux' + when: ansible_system == 'Linux' - name: Expand locations in clock dconf: key: /org/mate/panel/objects/clock/prefs/expand-locations value: 'true' - when: mate_panel.pids | length > 0 and ansible_system == 'Linux' + when: ansible_system == 'Linux'