chore: replace apt_key to get_url

This commit is contained in:
Adrien Waksberg 2024-05-07 22:25:54 +02:00
parent a1cd7135a3
commit 8aa3a9cbaa
5 changed files with 17 additions and 22 deletions

View file

@ -20,6 +20,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
- bug in user template - bug in user template
- add multiple value type in service vars - add multiple value type in service vars
### Removed
- test: remove support debian11
## v1.0.0 - 2021-08-15 ## v1.0.0 - 2021-08-15
- first version - first version

View file

@ -9,7 +9,6 @@ Install and configure Icinga2
- Ansible >= 2.9 - Ansible >= 2.9
- Debian - Debian
- Bullseye
- Bookworm - Bookworm
## Role variables ## Role variables

View file

@ -6,12 +6,11 @@ galaxy_info:
company: Adrien Waksberg company: Adrien Waksberg
description: Install and configure Icinga2 description: Install and configure Icinga2
license: Apache2 license: Apache2
min_ansible_version: 2.9 min_ansible_version: "2.9"
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

@ -9,20 +9,22 @@
until: result is succeeded until: result is succeeded
tags: icinga2 tags: icinga2
- 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
retries: 2 dest: /etc/apt/keyrings/icinga.asc
register: result owner: root
until: result is succeeded group: root
mode: 0644
checksum: sha256:be677e07972ed57b99ffc2fd211379ac11b9c6a7c8d9460086b447b96b0a82bb
tags: icinga2 tags: icinga2
- 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: >-
retries: 2 deb [signed-by=/etc/apt/keyrings/icinga.asc]
register: result https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main
until: result is succeeded filename: icinga
tags: icinga2 tags: icinga2
- name: install packages - name: install packages