Merge pull request #173 from jakommo/master
Remove old http repo on debian/ubuntu and use https one.
This commit is contained in:
commit
ef9ead504e
2 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ es_version_lock: false
|
|||
es_use_repository: true
|
||||
es_apt_key: "https://packages.elasticsearch.org/GPG-KEY-elasticsearch"
|
||||
es_apt_url: "deb https://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main"
|
||||
es_apt_url_old: "deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main"
|
||||
es_start_service: true
|
||||
es_java_install: true
|
||||
update_java: false
|
||||
|
|
|
|||
|
|
@ -14,7 +14,10 @@
|
|||
when: es_use_repository and es_apt_key
|
||||
|
||||
- name: Debian - Add elasticsearch repository
|
||||
apt_repository: repo="{{ es_apt_url }}" state=present
|
||||
apt_repository: repo={{ item.repo }} state={{ item.state}}
|
||||
with_items:
|
||||
- { repo: "{{ es_apt_url_old }}", state: "absent" }
|
||||
- { repo: "{{ es_apt_url }}", state: "present" }
|
||||
when: es_use_repository
|
||||
|
||||
- name: Debian - Include versionlock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue