2014-12-19 14:39:09 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install MMS agent pt. 1
|
2016-04-17 13:43:00 +00:00
|
|
|
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.deb
|
2014-12-19 14:39:09 +00:00
|
|
|
register: mongodb_mms_agent_loaded
|
|
|
|
|
|
|
|
- name: Install MMS agent pt. 2
|
2016-04-17 13:43:00 +00:00
|
|
|
apt: deb={{mongodb_storage_dbpath}}/mms-agent.deb
|
2014-12-19 14:39:09 +00:00
|
|
|
when: mongodb_mms_agent_loaded.changed
|
|
|
|
|
|
|
|
- name: Configure the MMS agent pt. 1
|
|
|
|
file: state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755
|
|
|
|
|
|
|
|
- name: Configure the MMS agent pt. 2
|
|
|
|
template: src=automation-agent.config.j2 dest=/etc/mongodb-mms/automation-agent.config
|
|
|
|
notify: mongodb-mms-automation-agent restart
|
|
|
|
|
|
|
|
- name: Ensure that the MMS agent is started
|
|
|
|
service: name=mongodb-mms-automation-agent state=started enabled=yes
|
2015-04-06 21:37:34 +00:00
|
|
|
when: mongodb_manage_service
|