Improve order of when and block
This commit is contained in:
parent
262c6d5609
commit
f801ca8482
1 changed files with 2 additions and 2 deletions
|
@ -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') }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue