Fix librewolf installation for Debian
This commit is contained in:
parent
70708cd837
commit
754204d6a4
3 changed files with 48 additions and 24 deletions
1
roles/librewolf/files/librewolf.list
Normal file
1
roles/librewolf/files/librewolf.list
Normal file
|
@ -0,0 +1 @@
|
|||
deb [arch=amd64] http://deb.librewolf.net $distro main
|
5
roles/librewolf/handlers/main.yml
Normal file
5
roles/librewolf/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Update apt cache
|
||||
become: true
|
||||
apt:
|
||||
update_cache: true
|
|
@ -1,31 +1,49 @@
|
|||
---
|
||||
- name: Clone librewolf (Archlinux)
|
||||
git:
|
||||
repo: https://aur.archlinux.org/librewolf-bin.git
|
||||
dest: ~/builds/librewolf-bin
|
||||
clone: true
|
||||
update: false
|
||||
version: master
|
||||
- name: Install librewolf (Archlinux)
|
||||
block:
|
||||
- name: Clone librewolf (Archlinux)
|
||||
git:
|
||||
repo: https://aur.archlinux.org/librewolf-bin.git
|
||||
dest: ~/builds/librewolf-bin
|
||||
clone: true
|
||||
update: false
|
||||
version: master
|
||||
- name: Add gpg key for librewolf (Archlinux)
|
||||
command: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 031F7104E932F7BD7416E7F6D2845E1305D6E801
|
||||
register: result
|
||||
changed_when: "'unchanged: 1' not in result.stderr"
|
||||
- name: Make and install librewolf (Archlinux)
|
||||
command:
|
||||
cmd: makepkg -cirs --needed
|
||||
chdir: ~/builds/librewolf-bin
|
||||
stdin: Y
|
||||
register: result
|
||||
changed_when: "'installing existing package' not in result.stderr"
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
|
||||
- name: Add gpg key for librewolf
|
||||
command: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 031F7104E932F7BD7416E7F6D2845E1305D6E801
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
|
||||
- name: Make and install librewolf (Archlinux)
|
||||
command:
|
||||
cmd: makepkg -cirs --needed
|
||||
chdir: ~/builds/librewolf-bin
|
||||
stdin: Y
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
register: result
|
||||
changed_when: "'installing existing package' not in result.stderr"
|
||||
|
||||
- name: Install librewolf (Debian)
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- librewolf
|
||||
block:
|
||||
- name: Copy librewolf.list (Debian)
|
||||
become: true
|
||||
copy:
|
||||
src: librewolf.list
|
||||
dest: /etc/apt/sources.list.d/librewolf.list
|
||||
mode: 0644
|
||||
notify: Update apt cache
|
||||
- name: Add gpg key for librewolf (Debian)
|
||||
become: true
|
||||
get_url:
|
||||
url: https://deb.librewolf.net/keyring.gpg
|
||||
dest: /etc/apt/trusted.gpg.d/librewolf.gpg
|
||||
mode: 0644
|
||||
notify: Update apt cache
|
||||
- name: Flush handlers
|
||||
meta: flush_handlers
|
||||
- name: Install librewolf (Debian)
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- librewolf
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Open addon pages for installation
|
||||
|
|
Loading…
Add table
Reference in a new issue