ansible-role-mongodb/tasks/main.yml

26 lines
584 B
YAML
Raw Normal View History

2014-06-04 15:03:58 +00:00
---
2015-02-17 09:01:36 +00:00
- include: install.deb.yml
when: ansible_os_family == 'Debian'
tags: [mongodb]
2015-02-17 09:01:36 +00:00
- include: configure.yml
tags: [mongodb]
2015-02-17 09:01:36 +00:00
- include: replication_init_auth.yml
when: ( mongodb_conf_replSet is defined and mongodb_conf_auth
and mongodb_master is defined and mongodb_master )
tags: [mongodb]
2015-02-17 09:01:36 +00:00
- include: replication.yml
when: mongodb_conf_replSet is defined
tags: [mongodb]
- include: auth_initialization.yml
when: mongodb_conf_auth and not mongodb_conf_replSet
tags: [mongodb]
2015-02-17 09:01:36 +00:00
- include: mms-agent.yml
when: mongodb_mms_api_key != ""
tags: [mongodb]