Skip to content

Instantly share code, notes, and snippets.

@equinox79
Last active December 28, 2015 20:59
Show Gist options
  • Save equinox79/7561064 to your computer and use it in GitHub Desktop.
Save equinox79/7561064 to your computer and use it in GitHub Desktop.
CentOSにAnsibleでFabricを入れる(とりあえず動いたレベル)
ansible-playbook -i ./hosts install_fabric.yaml
[local]
localhost
- hosts: localhost
connection: local
gather_facts: False
user: vagrant
sudo: yes
tasks:
- name: python-devel install
yum: name="python-devel" state=latest
- name: wget install
yum: name="wget" state=latest
- name: Development tools install
yum: name="@Development tools" state=latest
- name: download ez_setup.py
command: wget http://peak.telecommunity.com/dist/ez_setup.py chdir=/usr/local/src
- name: ez_setup.py
command: python ez_setup.py chdir=/usr/local/src
- name: install pip
command: easy_install pip
- name: install fabric
command: pip install fabric cuisine envassert PyCrypto==2.3
@equinox79
Copy link
Author

CentOS6.4 でpycryptoを最新にすると

AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

と、怒られるので

command: pip install fabric cuisine PyCrypto==2.3

と、バージョンを指定している

via http://ftakao2007.github.io/blog/2013/04/06/fabric/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment