Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 127 forks source link

Ubuntu Xenial: ElasticSearch install fails when es_version isn't defined #84

Closed soumikgh closed 6 years ago

soumikgh commented 6 years ago

Hi, I'm using the quickstart example playbook and the ElasticSeach install fails when es_version isn't defined.

TASK [elastic.elasticsearch : Debian - Ensure elasticsearch is installed] *********************************************************************************************************
task path: /xxx/xxx/ansible/playbooks/roles/elastic.elasticsearch/tasks/elasticsearch-Debian.yml:30
fatal: [xxx.xxxx.com]: FAILED! => {"cache_update_time": 1518618255, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'elasticsearch=6.1.3'' failed: E: Version '6.1.3' for 'elasticsearch' was not found\n", "rc": 100, "stderr": "E: Version '6.1.3' for 'elasticsearch' was not found\n", "stderr_lines": ["E: Version '6.1.3' for 'elasticsearch' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}

Adding the es_version variable fixes the issue.

mariussturm commented 6 years ago

I think this is more a problem for the Elasticsearch role itself right? https://github.com/elastic/ansible-elasticsearch

soumikgh commented 6 years ago

Yes, but the QuickStart example (for this playbook) should be edited to add it. It might be confusing otherwise.

mariussturm commented 6 years ago

Ah ok, got it! https://github.com/Graylog2/graylog-ansible-role/commit/deeb12dad981bf83f096f80bf9068eb1e88e0d64