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.
This commit is contained in:
parent
dae2157bb7
commit
bc22fbcaa0
4 changed files with 64 additions and 36 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue