-name:check to see that MongoDB 2.4 isn't installed
stat:path=/etc/init.d/mongodb
register:mongodb_needs_upgrade
-name:verify 2.4 not installed
fail:msg="MongoDB 2.4 is currently installed. Check http://docs.mongodb.org/manual/release-notes/2.6-upgrade/#upgrade-considerations - automated upgrade to follow"
when:mongodb_needs_upgrade.stat.exists
-name:install python pymongo for mongo_user ansible module