chore: replace apt_key to get_url

This commit is contained in:
Adrien Waksberg 2024-02-16 10:34:28 +01:00
parent 98769717c4
commit 5c17df22bf
4 changed files with 12 additions and 4 deletions

View file

@ -17,11 +17,13 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
### Removed ### Removed
- test: remove support debian 10 - test: remove support debian 10
- test: remove support debian 11
### Changed ### Changed
- major default version is 8 - major default version is 8
- replace kitchen to molecule - replace kitchen to molecule
- replace apt_key to get_url
### Fixed ### Fixed

View file

@ -9,7 +9,6 @@ Install and configure Elasticsearch
* Ansible >= 2.9 * Ansible >= 2.9
* Debian * Debian
* Bullseye
* 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

@ -7,13 +7,21 @@
tags: elasticsearch tags: elasticsearch
- name: Add repository key - name: Add repository key
ansible.builtin.apt_key: ansible.builtin.get_url:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
dest: /etc/apt/keyrings/elastic.asc
owner: root
group: root
mode: 0644
checksum: sha256:db52809c5f6b27f9c2bed45cb43e398c659275f3d35305653c6750a0db90f5eb
tags: elasticsearch tags: elasticsearch
- name: Add repository - name: Add repository
ansible.builtin.apt_repository: ansible.builtin.apt_repository:
repo: "deb https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main" repo: >
deb [signed-by=/etc/apt/keyrings/elastic.asc]
https://artifacts.elastic.co/packages/{{ elasticsearch_major_version }}.x/apt stable main
filename: elastic
tags: elasticsearch tags: elasticsearch
- name: Install package - name: Install package