Last active
December 20, 2015 07:49
-
-
Save masahide/6096220 to your computer and use it in GitHub Desktop.
ansible インストール ref: http://qiita.com/yamasaki-masahide/items/0546b2b7770150394159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pyenvするのに必要なパッケージ | |
| sudo yum install -y vim-enhanced gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel | |
| # pyenv インストール | |
| cd ~ | |
| git clone git://github.com/yyuu/pyenv.git .pyenv | |
| echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile | |
| echo 'eval "$(pyenv init -)"' >> ~/.bash_profile | |
| . ~/.bash_profile | |
| # pyenvで python 2.7.5 を入れる | |
| VERSION=2.7.5 | |
| pyenv install $VERSION | |
| pyenv rehash | |
| pyenv global $VERSION | |
| # ansibleに必要なモジュールをpipで入れる | |
| pip install paramiko jinja2 PyYAML pycrypto markupsafe | |
| # ansible のインストール | |
| cd ~ | |
| git clone git://github.com/ansible/ansible.git | |
| cd ansible | |
| # 環境変数設定 | |
| . ./hacking/env-setup | |
| echo ". ~/ansible/hacking/env-setup -q" >>~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment