Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/ansible-examples
- Owner: nhatthaiquang-agilityio
- Created: 2016-08-18T03:32:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-15T09:53:29.000Z (over 8 years ago)
- Last Synced: 2024-04-16T07:09:35.450Z (9 months ago)
- Topics: ansible, django, mysql, nginx
- Language: Ruby
- Homepage:
- Size: 826 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible-examples
* Best practices: https://github.com/ansible/ansible-examplesAnsible with vagrant
=======================================
Vagrant Ubuntu 14.04Notes:
------
* 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.ymlErrors and Resolving:
---------------------
* Fatal: [22.22.22.22]: FAILED! => {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "}
+ Fixed: set “sudo: yes” into site.ymlReference:
----------
http://www.thedreaming.org/2014/11/04/vagrant-ansible/