chore: replace apt_key to get_url
This commit is contained in:
parent
a1cd7135a3
commit
8aa3a9cbaa
5 changed files with 17 additions and 22 deletions
|
@ -20,6 +20,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|||
- bug in user template
|
||||
- add multiple value type in service vars
|
||||
|
||||
### Removed
|
||||
|
||||
- test: remove support debian11
|
||||
|
||||
## v1.0.0 - 2021-08-15
|
||||
|
||||
- first version
|
||||
|
|
|
@ -9,7 +9,6 @@ Install and configure Icinga2
|
|||
|
||||
- Ansible >= 2.9
|
||||
- Debian
|
||||
- Bullseye
|
||||
- Bookworm
|
||||
|
||||
## Role variables
|
||||
|
|
|
@ -6,12 +6,11 @@ galaxy_info:
|
|||
company: Adrien Waksberg
|
||||
description: Install and configure Icinga2
|
||||
license: Apache2
|
||||
min_ansible_version: 2.9
|
||||
min_ansible_version: "2.9"
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- bullseye
|
||||
- bookworm
|
||||
|
||||
galaxy_tags:
|
||||
|
|
|
@ -11,15 +11,6 @@ platforms:
|
|||
command: /bin/systemd
|
||||
capabilities:
|
||||
- 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: |
|
||||
set -e
|
||||
yamllint .
|
||||
|
|
|
@ -9,20 +9,22 @@
|
|||
until: result is succeeded
|
||||
tags: icinga2
|
||||
|
||||
- name: add key repository
|
||||
ansible.builtin.apt_key:
|
||||
- name: Add repository key
|
||||
ansible.builtin.get_url:
|
||||
url: https://packages.icinga.com/icinga.key
|
||||
retries: 2
|
||||
register: result
|
||||
until: result is succeeded
|
||||
dest: /etc/apt/keyrings/icinga.asc
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
checksum: sha256:be677e07972ed57b99ffc2fd211379ac11b9c6a7c8d9460086b447b96b0a82bb
|
||||
tags: icinga2
|
||||
|
||||
- name: add repository
|
||||
- name: Add repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: 'deb https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main'
|
||||
retries: 2
|
||||
register: result
|
||||
until: result is succeeded
|
||||
repo: >-
|
||||
deb [signed-by=/etc/apt/keyrings/icinga.asc]
|
||||
https://packages.icinga.com/debian icinga-{{ ansible_distribution_release }} main
|
||||
filename: icinga
|
||||
tags: icinga2
|
||||
|
||||
- name: install packages
|
||||
|
|
Loading…
Reference in a new issue