2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker の node イメージは Debian なので apt-get で ansible をインストールできない

Posted at

docker 公式の node イメージから派生して ansible を入れたい要件があって、Installation — Ansible Documentation に書いてある方法で ansible をインストールしようとしたらうまくいかなかった。

原因は node イメージが Ubuntu ではなく Debian だったからで、下記のように easy_install + pip を使うようにしたらうまく入った。

RUN apt-get update && apt-get install -y python-setuptools python-dev
RUN easy_install pip
RUN pip install ansible

入ったバージョンは 2.2.0.0 だった。

root@8526546a807c:/opt# ansible --version
ansible 2.2.0.0
  config file = 
  configured module search path = Default w/o overrides

ansibrest/Dockerfile at master · muddydixon/ansibrest にも反映されている。

2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?