setup-cockpit/roles/librewolf/tasks/main.yml

27 lines
746 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: 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