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

How to import maxmind ip locations in mysql

I’m just building a map of some ip addresses and need to geolocate them. I decided to use the MaxMind database. I found these two brilliant resource without which I could not have imported the databases properly. There are: http://www.dbasquare.com/2012/06/01/implementing-efficient-geo-ip-location-system-in-mysql/ http://nickbartlett.com/wordpress/using-maxmind-geo-city-lite-database-on-your-website/