31 lines
943 B
YAML
31 lines
943 B
YAML
---
|
|
- name: Clone librewolf (Archlinux)
|
|
git:
|
|
repo: https://aur.archlinux.org/librewolf-bin.git
|
|
dest: ~/builds/librewolf-bin
|
|
clone: true
|
|
update: false
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|
|
|
|
- name: Add gpg key for librewolf
|
|
command: gpg --keyserver hkp://keyserver.ubuntu.com --search-keys 031F7104E932F7BD7416E7F6D2845E1305D6E801
|
|
when: ansible_facts['distribution'] == 'Archlinux'
|
|
|
|
- name: Make and install librewolf (Archlinux)
|
|
command:
|
|
cmd: makepkg -cirs --needed
|
|
chdir: ~/builds/librewolf-bin
|
|
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
|
|
when: ansible_facts['distribution'] == 'Debian'
|
|
|
|
- name: Open addon pages for installation
|
|
command: "librewolf {{ lookup('file', 'addons.txt') }}"
|
|
changed_when: false
|