-name:check to see that MongoDB 2.4 is not installed
stat:path=/etc/init.d/mongodb
register:mongodb_needs_upgrade
tags:
-install
-install:base
-name:verify 2.4 not installed
fail:msg="MongoDB 2.4 is currently installed and cannot be safely upgraded in a clustered configuration. Please read http://docs.mongodb.org/manual/release-notes/2.6-upgrade/#upgrade-considerations and upgrade to 2.6."
when:mongodb_needs_upgrade.stat.exists and MONGO_CLUSTERED
tags:
-install
-install:base
-name:remove mongo 2.4 if present
apt:>
...
...
@@ -13,28 +19,43 @@
state=absent purge=yes
force=yes
when:mongodb_needs_upgrade.stat.exists and not MONGO_CLUSTERED
tags:
-install
-install:base
-name:install python pymongo for mongo_user ansible module