1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

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-19 23:12:40 +01:00 committed by patchback[bot]
parent e7e9cf97e5
commit c9a1b460b0
4 changed files with 64 additions and 36 deletions

View file

@ -45,16 +45,37 @@
ansible.builtin.get_url:
url: https://packages.gopass.pw/repos/gopass/gopass-archive-keyring.gpg
dest: /usr/share/keyrings/gopass-archive-keyring.gpg
- name: Add gopass repo
ansible.builtin.apt_repository:
repo: "deb [arch=amd64,arm64,armhf \
signed-by=/usr/share/keyrings/gopass-archive-keyring.gpg] \
https://packages.gopass.pw/repos/gopass stable main"
- name: Make sure python3-debian is installed
ansible.builtin.apt:
name: python3-debian
state: present
- name: Update apt-cache and install gopass package
- name: Add gopass repo
ansible.builtin.deb822_repository:
name: gopass
types: deb
architectures:
- amd64
- arm64
- armhf
signed_by: /usr/share/keyrings/gopass-archive-keyring.gpg
uris:
- https://packages.gopass.pw/repos/gopass
suites:
- stable
components:
- main
state: present
register: apt_repo
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
when: apt_repo is changed
- name: Install gopass package
ansible.builtin.apt:
name: gopass
update_cache: true
state: present
- name: Install on macOS
when: ansible_facts.distribution == 'MacOSX'