[stable-11] CI: Replace apt_repository and apt_key with deb822_repository (#11625) (#11628)

CI: Replace apt_repository and apt_key with deb822_repository (#11625)

Replace apt_repository and apt_key with deb822_repository.

(cherry picked from commit bc22fbcaa0)
This commit is contained in:
Felix Fontein
2026-03-20 08:06:15 +01:00
committed by GitHub
parent 33ed69bc93
commit badfef8070
4 changed files with 64 additions and 36 deletions

View File

@@ -8,17 +8,10 @@
name: flatpak
state: present
when: ansible_distribution == 'Fedora'
- block:
- name: Activate flatpak ppa on Ubuntu versions older than 18.04/bionic
apt_repository:
repo: ppa:alexlarsson/flatpak
state: present
mode: '0644'
when: ansible_lsb.major_release | int < 18
- name: Install flatpak package on Ubuntu
apt:
name: flatpak
state: present
- name: Install flatpak package on Ubuntu
apt:
name: flatpak
state: present
when: ansible_distribution == 'Ubuntu'
- name: Install flatpak remote for testing check mode
flatpak_remote: