Fix librewolf installation for Debian

This commit is contained in:
flyingscorpio@clevo 2022-07-01 23:50:24 +02:00
parent 70708cd837
commit 754204d6a4
3 changed files with 48 additions and 24 deletions

View file

@ -0,0 +1 @@
deb [arch=amd64] http://deb.librewolf.net $distro main

View file

@ -0,0 +1,5 @@
---
- name: Update apt cache
become: true
apt:
update_cache: true

View file

@ -1,31 +1,49 @@
--- ---
- name: Clone librewolf (Archlinux) - name: Install librewolf (Archlinux)
git: block:
repo: https://aur.archlinux.org/librewolf-bin.git - name: Clone librewolf (Archlinux)
dest: ~/builds/librewolf-bin git:
clone: true repo: https://aur.archlinux.org/librewolf-bin.git
update: false dest: ~/builds/librewolf-bin
version: master 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' 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) - name: Install librewolf (Debian)
become: true block:
apt: - name: Copy librewolf.list (Debian)
name: become: true
- librewolf 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' when: ansible_facts['distribution'] == 'Debian'
- name: Open addon pages for installation - name: Open addon pages for installation