30 lines
1.4 KiB
Markdown
30 lines
1.4 KiB
Markdown
Ansible Playbooks
|
|
=================
|
|
Configure servers in a snap with these concise Ansible playbooks!
|
|
|
|
Current Playbooks:
|
|
|
|
* **ZeroMQ** - open source high-performance asynchronous messaging library
|
|
|
|
Future Playbooks:
|
|
|
|
* **MongoDB** - open source document-oriented database system
|
|
* **MySQL** - open source relational database system
|
|
* **Apache** - open source web server
|
|
* **NginX** - open source web server
|
|
* **Python** - open source highlevel interprited programming language
|
|
* **Ruby** - open source highlevel interprited programming language
|
|
* **RVM** - open source Ruby version and environment manager
|
|
|
|
Before running these Ansible playbooks, or any Ansible commands for that matter, it is essential that you have your publick SSH keys copied to your server's `~/.ssh/authorized_keys` file. The following command will copy your public key from your management computer, to the server:
|
|
|
|
# Don't space out and forget to ensure that you replace the username and ip/host address with your specific credentials.
|
|
$ scp ~/.ssh/id_rsa.pub username@111.222.333.444:~/.ssh/authorized_keys
|
|
|
|
Then all you have to do, as long as you have properly installed Ansible, and have added it's location to your $PATH, is run the following command to confirm that everything is hunky-dory:
|
|
|
|
$ ansible all -m ping
|
|
|
|
That should tell you whether Ansible has the ability to contact, and SSH into, the servers that you've added to your Ansible hosts file in `/etc/ansible/hosts`
|
|
|
|
It's that simple. |