Setup mongodb server
Need ansible 2+
mongodb_db_path: "/data/db"
mongodb_user: "mongodb"
mongodb_group: "mongodb"
# Support version 2.6, 3.0 and 3.2
mongodb_version: 2.6
mongo_replication_set: "myRs"
# Bind mongo on differents ips
mongo_interfaces: ["127.0.0.1", "10.0.0.1"]
If you want a single instance, to disable replica_set you can do :
mongo_replication_set: !!null
There is no dependency
- hosts: servers
roles:
- role: simplifield.mongo
BSD