Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

use https for package sources #170

Merged
merged 2 commits into from
Oct 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ es_major_version: "2.x"
es_version: "2.3.4"
es_version_lock: false
es_use_repository: true
es_apt_key: "http://packages.elasticsearch.org/GPG-KEY-elasticsearch"
es_apt_url: "deb http://packages.elastic.co/elasticsearch/{{ es_major_version }}/debian stable main"
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_start_service: true
es_java_install: true
update_java: false
Expand All @@ -27,4 +27,4 @@ es_xpack_features: []
#These are used for internal operations performed by ansible.
#They do not effect the current configuration
es_api_host: "localhost"
es_api_port: 9200
es_api_port: 9200
10 changes: 7 additions & 3 deletions tasks/elasticsearch-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@
- set_fact: force_install=yes
when: es_allow_downgrades

- name: Debian - Install apt-transport-https to support https APT downloads
apt: name=apt-transport-https state=present
when: es_use_repository

- name: Debian - Add Elasticsearch repository key
apt_key: url="{{ es_apt_key }}" state=present
when: es_use_repository and es_apt_key

- name: Debian - add elasticsearch repository
- name: Debian - Add elasticsearch repository
apt_repository: repo="{{ es_apt_url }}" state=present
when: es_use_repository

- name: Debian - include versionlock
- name: Debian - Include versionlock
include: elasticsearch-Debian-version-lock.yml
when: es_version_lock

Expand All @@ -33,4 +37,4 @@

# ansible uri module requires httplib2
- name: python-httplib2
apt: name=python-httplib2
apt: name=python-httplib2