Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhatthaiquang-agilityio/ansible-examples

Deployment with Ansible
https://github.com/nhatthaiquang-agilityio/ansible-examples

ansible django mysql nginx

Last synced: 19 days ago
JSON representation

Deployment with Ansible

Awesome Lists containing this project

README

        

# Ansible-examples
* Best practices: https://github.com/ansible/ansible-examples

Ansible with vagrant
=======================================
Vagrant Ubuntu 14.04

Notes:
------
* Please make sure that you added a public key(id_rsa.pub) into vagrant

* Check server:
+ $ansible -i hosts webserver -m ping
- Result
22.22.22.22 | SUCCESS => {
"changed": false,
"ping": "pong"
}
+ $ansible -i hosts webserver -a "/bin/echo hello"
- Result
22.22.22.22 | SUCCESS | rc=0 >>
hello

* Run playbook:
+ vagrant$ ansible-playbook -i ../ansible-nginx/hosts ../ansible-nginx/site.yml

Errors and Resolving:
---------------------
* Fatal: [22.22.22.22]: FAILED! => {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "}
+ Fixed: set “sudo: yes” into site.yml

Reference:
----------
http://www.thedreaming.org/2014/11/04/vagrant-ansible/