fedelemantuano / ansible-kibana

Ansible role for Kibana
https://galaxy.ansible.com/fedelemantuano/kibana
Apache License 2.0
17 stars 20 forks source link

Failing at Task[fedelemantuano.kibana : Debian - Ensure kibana-oss is installed ] #5

Closed bouldrini closed 4 years ago

bouldrini commented 5 years ago

Hey fedelemantuano,

my playbook fails at

TASK [fedelemantuano.kibana : Debian - Ensure kibana-oss is installed allow_unauthenticated={{ 'no' if es_apt_key else 'yes' }}, state=present, force={{ force_install }}, name={{ kibana_package_name }}{% if es_version is defined and es_version %}={{ es_version }}{% endif %}, cache_valid_time=86400]

Playbook looks like this

`

can you give me a hint ?

I'm under Ubuntu 16.04 xenial.

bouldrini commented 5 years ago

Oh, forgot the Logs:

` task path: /home/bouldrini/elasticsearch_playbook/roles/fedelemantuano.kibana/tasks/kibana-Debian.yml:58 FAILED - RETRYING: Debian - Ensure kibana-oss is installed (5 retries left). FAILED - RETRYING: Debian - Ensure kibana-oss is installed (4 retries left). FAILED - RETRYING: Debian - Ensure kibana-oss is installed (3 retries left). FAILED - RETRYING: Debian - Ensure kibana-oss is installed (2 retries left). FAILED - RETRYING: Debian - Ensure kibana-oss is installed (1 retries left).

fatal: [kibana1]: FAILED! => { "attempts": 5, "cache_update_time": 1567186495, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'kibana-oss=7.x'' failed: E: Version '7.x' for 'kibana-oss' was not found\n", "rc": 100, "stderr": "E: Version '7.x' for 'kibana-oss' was not found\n", "stderr_lines": ["E: Version '7.x' for 'kibana-oss' 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..."] } `

bouldrini commented 5 years ago

The mysterium might be aroung this line: "stderr": "E: Version '7.x' for 'kibana-oss' was not found\n",

fedelemantuano commented 5 years ago

Yes from 7.x Elastic gives us x-pack for free. I can do a validation check before start the playbook.

fedelemantuano commented 4 years ago

Hi @bouldrini

now we have this fail message:

TASK [kibana : fail when is selected kibana-oss for version 7.x msg=You can't install 'kibana-oss' for version 7.x of Elastic stack] *********************************************************************************************************************************************
fatal: [elasticsearch]: FAILED! => {"changed": false, "msg": "You can't install 'kibana-oss' for version 7.x of Elastic stack"}
fedelemantuano commented 4 years ago

I checked and now there are oss packages, for Debian and Red Hat so I will add them to this role.