altnight / django-playbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

environment

make development environment. using ubuntu 14.04.

required

  • vagrant(1.4.3)
  • ubuntu 14.04 LTS
  • ansible(1.5.5)

#. install vagrant

go url http://www.vagrantup.com

#. start vagrant

vagrant up
  • add ssh key

** using ssh-copy-id

ssh-kygen -t rsa
brew install ssh-copy-id
ssh-copy-id -i path/to/id_rsa.pub vagrant@192.168.100.100
  • test ping if ok, showen this.
ansible -i hosts 192.168.100.100 -m ping -vvvv
192.168.100.100 | success >> {
    "changed": false,
    "ping": "pong"
}

if failed, use -vvvv option(debug)

  • play ansible
ansible-playbook -i hosts playbook.yml

About

License:Apache License 2.0