The following article is based on my experience as a middelware “IT Ops guys” and the benefits of Ansible.
Ansible is different to other automation tools like Chef, Puppet and Salt. The main difference is that Ansible is first a push tool rather than a pull. In no way are the other tools mentioned inferior but Ansible offers an easier transition from no automation to fully automated.
Whats cool about Ansible? Easy … you write stuff in YAML and Jinja2, so it’s very easy to write an Ansible playbook. You can do orchestration from your laptop to your target servers without installing any additional software (as long as ssh and python are installed).
In my opinion, the documentation on the Ansible website. Their docs are unnecessarily complicated especially some of the examples. But you quickly learn to “decrypt” it.
Anything. Well it can’t make you carrot juice in the morning but you know what I mean. Any task that needs orchestration and automation.
By default it connects to your target machine via ssh (hopefully in your case using an ssh key that you have exchanged). It then runs your tasks that you have listed. Sounds easy but once you work through the concepts of roles, tasks, plays, playbooks and variables, you will realize that it is that simple.
Yes 🙁 (I’m not a big windows fan)
The Ansible path will quickly teach you how awesome it is to automate every repeatable task you have ever had. As an IT Ops person I know that we love writing scripts and popping them into the crontab. If you want you can still have your scripts in a version controlled repo which Ansible will deploy and add to the crontab for you.
Install Ansible. You can do this serveral ways here is one;
git clone git://github.com/ansible/ansible.git --recursive
You might need to install some additional packages depending on the distro you are using. You can refer to the installation documentation for this.
One of the biggest questions I had when researching Ansible was that, if it was so flexible and so cool why wasn’t there an easy example of creating a playbook that differentiated between all the test environments and production. After actually implementing Ansible I found the answer to that question. It’s because there are so many ways to do this and so many different environment setup parameters. Because you can do this from your laptop there should be no reason why you shouldn’t at least give this a try.