Ansible task to start server not completing

I'm using ansible to setup my ubuntu machine with an ELK server, however I need to install an older version of kibana (5.2.2).

Originally I tried using the apt module and the tried something like - apt: name=kibana=5.2.2 state=present force=yes but apt couldn't find the version number. Now I'm trying the manual way by downloading, installing it and starting the server.

The problem I'm running into though is that when I tell ansible to run cd /home/ubuntu/kibana-5.2.2-linux-x86_64/; ./bin/kibana; it hangs indefinitely and never continues to the next task.

Is there a way to install kibana=5.2.2 through apt that I'm missing or is it possible to run the kibana package I downloaded manually in the background (similar to sudo service kibana restart) so that I can continue with the remaining playbook?

2
задан 20 December 2017 в 01:44
1 ответ

Модуль доступа APT использует вспомогательные инструменты APT.Он может устанавливать только те версии, которые определены в исходных текстах для дистрибутива / выпуска, который вы используете в своей системе. Он не может просто установить произвольные версии.

Если вы не можете использовать apt-get для установки данной версии, то вы не можете использовать модуль ansible apt для установки этой версии. Как и Марк, упомянутый в комментарии, вы можете использовать команду apt-cache madison kibana , чтобы просмотреть доступные версии с учетом ваших текущих источников для вашего выпуска.

1
ответ дан 3 December 2019 в 12:34

Теги

Похожие вопросы