chore: replace apt_key to get_url

This commit is contained in:
Adrien Waksberg 2024-05-07 22:21:03 +02:00
parent deb2afb389
commit 965bec2314
5 changed files with 15 additions and 14 deletions

View file

@ -9,6 +9,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- test: use personal docker registry - test: use personal docker registry
### Removed
- test: remove support debian11
## v1.0.0 - 2021-08-18 ## v1.0.0 - 2021-08-18
### Added ### Added

View file

@ -9,7 +9,6 @@ Install icingaweb2
- Ansible >= 2.9 - Ansible >= 2.9
- Debian - Debian
- Bulleyes
- Bookworm - Bookworm
## Role variables ## Role variables

View file

@ -11,7 +11,6 @@ galaxy_info:
platforms: platforms:
- name: Debian - name: Debian
versions: versions:
- bullseye
- bookworm - bookworm
galaxy_tags: galaxy_tags:

View file

@ -11,15 +11,6 @@ platforms:
command: /bin/systemd command: /bin/systemd
capabilities: capabilities:
- SYS_ADMIN - SYS_ADMIN
- name: debian11
image: code.waks.be/nishiki/molecule:debian11
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
command: /bin/systemd
capabilities:
- SYS_ADMIN
lint: | lint: |
set -e set -e
yamllint . yamllint .

View file

@ -5,14 +5,22 @@
- apt-transport-https - apt-transport-https
tags: icingaweb2 tags: icingaweb2
- name: Add key repository - name: Add repository key
ansible.builtin.apt_key: ansible.builtin.get_url:
url: https://packages.icinga.com/icinga.key url: https://packages.icinga.com/icinga.key
dest: /etc/apt/keyrings/icinga.asc
owner: root
group: root
mode: 0644
checksum: sha256:be677e07972ed57b99ffc2fd211379ac11b9c6a7c8d9460086b447b96b0a82bb
tags: icingaweb2 tags: icingaweb2
- name: Add repository - name: Add repository
ansible.builtin.apt_repository: ansible.builtin.apt_repository:
repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main' repo: >-
deb [signed-by=/etc/apt/keyrings/icinga.asc]
https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main
filename: icinga
tags: icingaweb2 tags: icingaweb2
- name: Install packages - name: Install packages