Skip to content

An ansible role for installing and managing MongoDB's.

Notifications You must be signed in to change notification settings

resmo/ansible-role-mongodb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible MongoDB Role

An ansible role for installing and managing MongoDB's.

Dependencies

None.

Example Playbook

    ---
    - hosts: mongo-cluster-*
      remote_user: root

      roles:
      - mongodb

      pre_tasks:
      - name: get mongo_group_name
        set_fact: mongo_group_name="{{ item }}"
        with_items: group_names
        when: item | search("mongo-cluster-*")

      - name: get mongo_replica_set
        set_fact: mongo_replica_set="{{ mongo_group_name }}"
        when: mongo_replica_set is not defined

License

MIT

Author Information

Daniel Menet

About

An ansible role for installing and managing MongoDB's.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%