ansible-role-mongodb/tasks/main.yml

26 lines
575 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
2016-03-03 19:22:38 +00:00
when: ( mongodb_conf_replSet != "" 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
2016-03-03 19:22:38 +00:00
when: mongodb_conf_replSet != ""
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]