Skip to content

matterstech/ansible-mongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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

About

Setup mongodb server

Resources

Stars

Watchers

Forks

Packages

No packages published