diff --git a/internet.yml b/internet.yml new file mode 100644 index 0000000..990642f --- /dev/null +++ b/internet.yml @@ -0,0 +1,4 @@ +- name: Internet + hosts: odhosts + roles: + - librewolf diff --git a/roles/librewolf/files/librewolf.sources b/roles/librewolf/files/librewolf.sources new file mode 100644 index 0000000..ca8f9dc --- /dev/null +++ b/roles/librewolf/files/librewolf.sources @@ -0,0 +1,6 @@ +Types: deb +URIs: https://deb.librewolf.net +Suites: bookworm +Components: main +Architectures: amd64 +Signed-By: /usr/share/keyrings/librewolf.gpg diff --git a/roles/librewolf/tasks/main.yml b/roles/librewolf/tasks/main.yml new file mode 100644 index 0000000..76df12a --- /dev/null +++ b/roles/librewolf/tasks/main.yml @@ -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