feat: librewolf installer
This commit is contained in:
parent
cf92967ce9
commit
fe2cb96e0a
3 changed files with 34 additions and 0 deletions
4
internet.yml
Normal file
4
internet.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Internet
|
||||||
|
hosts: odhosts
|
||||||
|
roles:
|
||||||
|
- librewolf
|
6
roles/librewolf/files/librewolf.sources
Normal file
6
roles/librewolf/files/librewolf.sources
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Types: deb
|
||||||
|
URIs: https://deb.librewolf.net
|
||||||
|
Suites: bookworm
|
||||||
|
Components: main
|
||||||
|
Architectures: amd64
|
||||||
|
Signed-By: /usr/share/keyrings/librewolf.gpg
|
24
roles/librewolf/tasks/main.yml
Normal file
24
roles/librewolf/tasks/main.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
- name: Install required programs
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt:
|
||||||
|
pkg:
|
||||||
|
- wget
|
||||||
|
- gnupg
|
||||||
|
- apt-transport-https
|
||||||
|
- ca-certificates
|
||||||
|
- name: Download gpg key
|
||||||
|
become: true
|
||||||
|
ansible.builtin.shell:
|
||||||
|
cmd: wget -O- https://deb.librewolf.net/keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/librewolf.gpg
|
||||||
|
creates: /usr/share/keyrings/librewolf.gpg
|
||||||
|
- name: Copy .sources file
|
||||||
|
become: true
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: librewolf.sources
|
||||||
|
dest: /etc/apt/sources.list.d/librewolf.sources
|
||||||
|
mode: "0644"
|
||||||
|
- name: Install librewolf
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: librewolf
|
||||||
|
update_cache: yes
|
Loading…
Reference in a new issue