From f801ca8482daeb53c1ae382a10b2cd6eecfd70c3 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 14 Oct 2022 10:46:53 +0200 Subject: [PATCH] Improve order of when and block --- roles/librewolf/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/librewolf/tasks/main.yml b/roles/librewolf/tasks/main.yml index 9395626..4951939 100644 --- a/roles/librewolf/tasks/main.yml +++ b/roles/librewolf/tasks/main.yml @@ -1,5 +1,6 @@ --- - name: Install librewolf (Archlinux) + when: ansible_facts['distribution'] == 'Archlinux' block: - name: Clone librewolf (Archlinux) git: @@ -19,9 +20,9 @@ stdin: Y register: result changed_when: "'installing existing package' not in result.stderr" - when: ansible_facts['distribution'] == 'Archlinux' - name: Install librewolf (Debian) + when: ansible_facts['distribution'] == 'Debian' block: - name: Copy librewolf.list (Debian) become: true @@ -44,7 +45,6 @@ apt: name: - librewolf - when: ansible_facts['distribution'] == 'Debian' - name: Open addon pages for installation command: "librewolf {{ lookup('file', 'addons.txt') }}"