chore: replace apt_key to get_url
This commit is contained in:
parent
bbc511e605
commit
bf43df93b4
6 changed files with 15 additions and 18 deletions
|
@ -9,6 +9,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
|
|||
|
||||
- test: add support Debian 12
|
||||
|
||||
### Changed
|
||||
|
||||
- chore: replace apt_key to get_url
|
||||
|
||||
### Removed
|
||||
|
||||
- test: remove support Debian 11
|
||||
|
|
|
@ -9,7 +9,6 @@ Install and configure kibana
|
|||
|
||||
* Ansible >= 2.9
|
||||
* Debian
|
||||
* Bullseye
|
||||
* Bookworm
|
||||
|
||||
## Role variables
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
kibana_major_version: 7
|
||||
kibana_major_version: 8
|
||||
kibana_config: {}
|
||||
|
|
|
@ -11,7 +11,6 @@ galaxy_info:
|
|||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- bullseye
|
||||
- bookworm
|
||||
|
||||
galaxy_tags:
|
||||
|
|
|
@ -11,15 +11,6 @@ platforms:
|
|||
command: /bin/systemd
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
- name: debian11
|
||||
image: nishiki/debian11:molecule
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:rw
|
||||
cgroupns_mode: host
|
||||
command: /bin/systemd
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
|
|
|
@ -7,16 +7,21 @@
|
|||
tags: kibana
|
||||
|
||||
- name: Add repository key
|
||||
ansible.builtin.apt_key:
|
||||
ansible.builtin.get_url:
|
||||
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
|
||||
retries: 2
|
||||
register: result
|
||||
until: result is succeeded
|
||||
dest: /etc/apt/keyrings/elastic.asc
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
checksum: sha256:db52809c5f6b27f9c2bed45cb43e398c659275f3d35305653c6750a0db90f5eb
|
||||
tags: kibana
|
||||
|
||||
- name: Add repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: 'deb https://artifacts.elastic.co/packages/{{ kibana_major_version }}.x/apt stable main'
|
||||
repo: >
|
||||
deb [signed-by=/etc/apt/keyrings/elastic.asc]
|
||||
https://artifacts.elastic.co/packages/{{ kibana_major_version }}.x/apt stable main
|
||||
filename: elastic
|
||||
tags: kibana
|
||||
|
||||
- name: Install package
|
||||
|
@ -24,7 +29,6 @@
|
|||
name:
|
||||
- kibana
|
||||
tags: kibana
|
||||
|
||||
- name: Copy config file
|
||||
ansible.builtin.copy:
|
||||
content: '{{ kibana_config | to_yaml }}'
|
||||
|
|
Loading…
Reference in a new issue