ansible-role-mongodb/tasks/mongodb.yml

21 lines
432 B
YAML
Raw Normal View History

2014-06-04 15:03:58 +00:00
---
- include: install.deb.yml
when: ansible_os_family == 'Debian'
2014-11-11 14:20:39 +00:00
- include: configure.yml
2014-06-09 08:59:15 +00:00
- name: Ensure mongodb is started
service: name={{ mongodb_daemon_name }} state=started enabled=yes
2014-09-02 22:14:06 +00:00
changed_when: False
2014-12-19 14:39:09 +00:00
2015-02-09 12:39:32 +00:00
- include: authorization.yml
when: mongodb_conf_auth == "yes"
2015-02-10 12:45:13 +00:00
- meta: flush handlers
- include: replication.yml
when: mongodb_conf_replSet != ""
2014-12-19 14:39:09 +00:00
- include: mms-agent.yml
when: mongodb_mms_api_key != ""