Created
May 25, 2023 14:58
-
-
Save roib20/3e6932db4a476fbd4bc28b86296642c9 to your computer and use it in GitHub Desktop.
Adding Mozilla PPA repository using the new `deb822_repository` Ansible module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: true | |
tasks: | |
- name: Add PPA repositories | |
when: ansible_distribution == 'Ubuntu' | |
become: true | |
block: | |
- name: Add Mozilla PPA repository | |
ansible.builtin.deb822_repository: | |
name: mozillateam-ubuntu-ppa | |
state: present | |
types: [deb] | |
uris: "http://ppa.launchpad.net/mozillateam/ppa/ubuntu" | |
suites: ["{{ ansible_distribution_release|lower }}"] | |
components: [main] | |
signed_by: "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0AB215679C571D1C8325275B9BDB3D89CE49EC21" | |
enabled: yes |
Since January 2024, Mozilla now offers an official repository for Debian-based distributions.
Although the PPA is still valid, I have personally changed over to this distribution on my machine. It is also a better option for Debian.
- name: Add Mozilla repository
ansible.builtin.deb822_repository:
name: mozilla
state: present
types: [deb]
uris: "https://packages.mozilla.org/apt"
suites: [mozilla]
components: [main]
signed_by: "https://packages.mozilla.org/apt/repo-signing-key.gpg"
enabled: yes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NOTE: Requires Ansible-core 2.15+ (Ansible 8.0+)