keep calm and drush cc

Wednesday, May 6, 2015 - 16:23

Our latest Ansible adventure has been the creation of a task structure which we can use to easily manage multiple Drupal websites on multiple servers.

It's easy enough to use the Ansible command module to run drush commands on a bunch of Drupal sites, using the following code (where sites is just a list of Drupal root locations):

name: Run drush cc all on each site listed
command: "drush cc all chdir=/var/www/{{ item }}"
with_items:
  - sites

Read more

heart rate monitor

Friday, April 10, 2015 - 11:51

More ansible goodness this week. We've been working on a basic playbook to set up the innovatively-named Monit monitoring tool to keep an eye on our webservers and give them a kick up the backside if they're misbehaving.

It's based on a very useful Ansible Galaxy role, pgolm's Monit, which installs and configures the tool. However, the role's documentation doesn't necessarily make it obvious how to get the best from Monit, so here's an example playbook for monitoring PHP, MySQL and Nginx to get things started:

Read more

automate all the things meme

Tuesday, March 24, 2015 - 12:18

 Three months ago, we were introduced to the wonders of Ansible at Drupal Camp Brighton. Since then, whenever we've had the chance we've been working on various Ansible playbooks to automate many of our development and maintenance processes.

For a small team like us, Ansible is invaluable. It is reducing the time we need to spend administering our servers and sites exponentially, freeing up extra time for development.

Read more