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