Fix for unauthenticated repos

This commit is contained in:
Dale McDiarmid 2017-01-03 10:36:23 +00:00
parent a3533a1180
commit 09fa4f1829
2 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,7 @@
when: es_version_lock
- name: Debian - Ensure elasticsearch is installed
apt: name=elasticsearch{% if es_version is defined and es_version != "" %}={{ es_version }}{% endif %} state=present force={{force_install}} allow_unauthenticated={{ 'false' if es_apt_key else 'true' }} cache_valid_time=86400
apt: name=elasticsearch{% if es_version is defined and es_version != "" %}={{ es_version }}{% endif %} state=present force={{force_install}} allow_unauthenticated={{ 'no' if es_apt_key else 'yes' }} cache_valid_time=86400
when: es_use_repository
register: elasticsearch_install_from_repo