Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

SimpliField/ansible-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo Build Status Ansible Role

Setup mongodb server

Requirements

Need ansible 2+

Role Variables

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

Dependencies

There is no dependency

Example Playbook

- hosts: servers
  roles:
  - role: simplifield.mongo

License

BSD