6
5

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.

ansbleのinstall

Last updated at Posted at 2014-05-01

mac

  1. Xcodeを入れる
  2. sudo easy_install pip
  3. sudo pip install ansible

で行けるはずだったんだけど、なんかエラー

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

なんかXcode5.1からおかしくなっちゃったみたい。

解決策は、

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible

pipの前に環境変数つけたら何とかなるみたいです。

vars_promptの暗号化を使う場合には、

sudo pip install passlib

もお忘れなく。

linux

shell scriptにしてplaybookと一緒に同梱して配布しとくと何かと便利だったりする。
vagrantでtest環境作るときとかさ。

sudo yum -y install python-devel.x86_64 python-setuptools gcc
sudo easy_install pip
sudo pip install passlib ansible

echo ""
echo "install complete"
ansible --version
6
5
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
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?