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'
|
2015-03-04 10:05:08 +00:00
|
|
|
tags: [mongodb]
|
2015-02-17 09:01:36 +00:00
|
|
|
|
|
|
|
- include: configure.yml
|
2015-03-04 10:05:08 +00:00
|
|
|
tags: [mongodb]
|
2015-02-17 09:01:36 +00:00
|
|
|
|
2015-06-22 08:59:25 +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
|
2015-06-22 08:59:25 +00:00
|
|
|
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 != ""
|
2015-03-04 10:05:08 +00:00
|
|
|
tags: [mongodb]
|