Improve order of when and block

This commit is contained in:
flyingscorpio@clevo 2022-10-14 10:46:53 +02:00
parent 262c6d5609
commit f801ca8482

View file

@ -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') }}"