equinox79
11/20/2013 - 10:38 AM

CentOSにAnsibleでFabricを入れる(とりあえず動いたレベル)

CentOSにAnsibleでFabricを入れる(とりあえず動いたレベル)

- 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
 ansible-playbook -i ./hosts install_fabric.yaml