paramiko.SSHException: Incompatible ssh peer (no acceptable kex algorithm) ubuntu 14.04

I was trying to sftp some files using Python Paramiko on Ubuntu 14.04 and got the following error: “paramiko.SSHException: Incompatible ssh peer (no acceptable kex algorithm)”. It turns out that there is an incompatibility issue with OpenSSH 6.7 and Paramiko with a version less than 1.15.1. At the time of writing (November 2014) Ubuntu 14.04 … Read more

Ansible Diff Function

Ansible is a great tool for configuring servers. I only recently discovered the Ansible diff argument which can be used to check what changes are going to be made for a file. If you use this with the –check flag you can see what changes will be applied. I find this especially useful when coming … Read more

Only running command if file doesn’t exist Ansible

I have a simple build script which installs wkhtmltophf on a server. However I only want this script to be run if the software isn’t already installed. Essentially, I want an if statement or check statement in Ansible. I.e. If file doesn’t exist then run this command. I have read the Ansible documentation multiple times … Read more

Ansible error fatal: must be stored as a dictionary/hash

I’ve been trying to setup group_vars in Ansible. My /group_vars/all file looked like; When I ran my playbook it said: It would have been helpful if it had provided a better error message. Anyhow, basically, I had got the syntax wrong in group vars by putting “quotes” around the value: Hope this helps someone.

How to install Ansible on Ubuntu

The Ansible website has some instructions for installing it on Ubuntu here. However, I like to install things from repositories and not git. So, I found a PPA with the latest version of Ansible on Launchpad. https://launchpad.net/~rquillo/+archive/ansible So to install Ansible on Ubuntu run: Thanks Rodney Quillo.

Ansible vs Puppet – reasons for choosing Ansible

We have been using both Puppet and Ansible to configure our servers for several months. I have come to really love Ansible and I wanted to put down my reasons for finally choosing Ansible over Puppet. Reason 1: Ansible is decentralised. With Puppet you need to maintain a central configuration server and install a Puppet … Read more

Percona apt_key download link

I’ve just been setting up Ansible and needed to find a download of the Percona RPM GPG APT-KEY so that I could use the apt_key module. You can download the Percona apt-key here: http://www.percona.com/redir/downloads/RPM-GPG-KEY-percona With Ansible you can add this key to a server via the play: