mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Add support for custom Debian repository; allow repository key to be set to false.
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
when: es_allow_downgrades
|
||||
|
||||
- name: Debian - Add Elasticsearch repository key
|
||||
apt_key: url="http://packages.elasticsearch.org/GPG-KEY-elasticsearch" state=present
|
||||
when: es_use_repository
|
||||
apt_key: url="{{ es_apt_key }}" state=present
|
||||
when: es_use_repository and es_apt_key
|
||||
|
||||
- name: Debian - add elasticsearch repository
|
||||
apt_repository: repo="deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main" state=present
|
||||
apt_repository: repo="{{ es_apt_url }}" state=present
|
||||
when: es_use_repository
|
||||
|
||||
- name: Debian - Ensure elasticsearch is installed
|
||||
|
||||
Reference in New Issue
Block a user