LoginSignup
0
0

More than 5 years have passed since last update.

Ansibleでansible_lsbがないと言われたときの対処

Last updated at Posted at 2015-04-11

非常に簡単では有りますがメモ。
Ansibleでansible_lsbという変数がないと言われた時の対処。

fatal: [*****test] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'ansible_lsb' is undefined", 'failed': True}

結論からいうとCentOSではredhat-lsb-core、Ubuntuではlsb-coreパッケージが必要です。
minimalなんかから固めに作る人はこれに当たりますが、Basicとか選んでいると大丈夫なはず。

AnsibleはChefと違ってエージェントがいらないとかいうけど、lsbは必要だし、SELinuxを有効にしていればlibselinux-pythonがサーバー側に必要だったりします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0