大网数据广告活动
服务器运维问答

Ansible task to start server not completing

· 52CE 我爱测

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=pr…

问题原文

原帖链接 · Ryan Grush · CC BY-SA 3.0

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?

已采纳解答

原帖链接 · Zoredache · CC BY-SA 3.0

The APT ansible module uses the underling apt tools. It can only install versions that are defined in sources for the distrobution/release you are running on your system. It can't just install arbitrary versions.

If you can't use apt-get to install a given version, then you can't use the ansible apt module to install that version. Like Mark mentioned in a comment, you can use the apt-cache madison kibana command to see the versions available given your currently defined sources for your release.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。